Commit 3c8b6c2
authored
Fix 2 uninitialized variables (#147)
* Code rewrite of swdsm_argo_barrier() to avoid unitialized variable
New(er) compiler versions report that variable `barrierlockholder` may
be used unitialized in this function. This was known for a while now,
but our (local) fix was unsatisfactory and was therefore not pushed to
the code base. Motivated by #146, which is also not perfect as a fix,
we have decided to rewrite that code and eliminate the uses of this
variable, paying some cost in (small) code duplication.
Closes #146
Co-authored by: @davidklaftenegger
* Initialize variable to suppress warning1 parent 2207fbd commit 3c8b6c2
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | | - | |
1027 | 1026 | | |
1028 | 1027 | | |
1029 | 1028 | | |
| |||
1038 | 1037 | | |
1039 | 1038 | | |
1040 | 1039 | | |
1041 | | - | |
1042 | 1040 | | |
1043 | 1041 | | |
1044 | 1042 | | |
| |||
1051 | 1049 | | |
1052 | 1050 | | |
1053 | 1051 | | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
| 1052 | + | |
| 1053 | + | |
1059 | 1054 | | |
1060 | 1055 | | |
1061 | 1056 | | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1062 | 1060 | | |
1063 | 1061 | | |
1064 | 1062 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments