Commit 7e98829
committed
Fix misc. compiler warnings.
Found with gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1).
- cmd_line.c:579: warning: ‘strncat’ output may be truncated copying 151
bytes from a string of length 151 [-Wstringop-truncation]
- hwloc_base_util.c:1050: warning: ‘strncat’ output may be truncated
copying between 0 and 8191 bytes from a string
of length 8191 [-Wstringop-truncation]
- base/hwloc_base_util.c:1077: warning: ‘strncat’ output may be truncated
copying between 0 and 8191 bytes from a string
of length 8191 [-Wstringop-truncation]
- base/mpool_base_alloc.c:81: warning: comparison of integer expressions of
different signedness: ‘ssize_t’ {aka ‘long int’}
and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
- mpiext_affinity_str.c:200: warning: ‘strncat’ output may be truncated copying between
0 and 1024 bytes from a string of length 8191
[-Wstringop-truncation]
- mpiext_affinity_str.c:235: warning: ‘strncat’ output may be truncated copying between
0 and 1024 bytes from a string of length 8191
[-Wstringop-truncation]
- mpiext_affinity_str.c:251: warning: ‘strncat’ output may be truncated copying between
0 and 1024 bytes from a string of length 8191
[-Wstringop-truncation]
- mpiext_affinity_str.c:273: warning: ‘strncat’ output may be truncated copying between
0 and 1024 bytes from a string of length 8191
[-Wstringop-truncation]
- mpiext_affinity_str.c:226: warning: ‘strncat’ output may be truncated copying between
0 and 1024 bytes from a string of length 8191
[-Wstringop-truncation]
- hook_comm_method_fns.c:32: warning: ‘strncpy’ output may be truncated copying 15 bytes
from a string of length 63 [-Wstringop-truncation]
- osc_sm_component.c:224:32: warning: comparison of integer expressions of different
signedness: ‘long unsigned int’ and ‘ssize_t’
{aka ‘long int’} [-Wsign-compare]
- osc_sm_component.c:262:16: warning: declaration of ‘flag’ shadows a previous local
[-Wshadow]
- osc_sm_component.c:413:13: warning: declaration of ‘flag’ shadows a previous local
[-Wshadow]
- osc_rdma_component.c:1371: warning: comparison of integer expressions of different
signedness: ‘long unsigned int’ and ‘ssize_t’
{aka ‘long int’} [-Wsign-compare]
- osc_rdma_component.c:1325: warning: unused variable ‘infoval’ [-Wunused-variable]
- dpm/dpm.c:667: warning: ‘modifiers’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
- Cleanup: Move common code to osc/base.
Signed-off-by: Austen Lauria <awlauria@us.ibm.com>
(cherry picked from commit d4d5ff3)1 parent 2d2f3d5 commit 7e98829
File tree
10 files changed
+33
-38
lines changed- ompi
- dpm
- mca
- hook/comm_method
- osc
- base
- rdma
- sm
- mpiext/affinity/c
- opal
- mca
- hwloc/base
- mpool/base
- util
10 files changed
+33
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 25 | | |
31 | 26 | | |
32 | | - | |
33 | | - | |
| 27 | + | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
39 | 57 | | |
40 | 58 | | |
41 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
1321 | 1320 | | |
1322 | 1321 | | |
1323 | 1322 | | |
1324 | | - | |
1325 | | - | |
1326 | 1323 | | |
1327 | 1324 | | |
1328 | 1325 | | |
| |||
1363 | 1360 | | |
1364 | 1361 | | |
1365 | 1362 | | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
| 1363 | + | |
1375 | 1364 | | |
1376 | 1365 | | |
1377 | 1366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| |||
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 218 | + | |
228 | 219 | | |
229 | 220 | | |
230 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | | - | |
| 1042 | + | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
| 1069 | + | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| |||
0 commit comments