Remove warning about tail "potentially uninitialized"
MSVC was complaining that the `tail` variable was potentially uninitialized in the while branch. Since the while loop is actually coupled to the if (head != NULL) that initializes the tail variable, we move them together, which makes the warning disappear.
This commit is contained in:
parent
d6e6911ad1
commit
206f5044a8
2 changed files with 10 additions and 9 deletions
|
|
@ -3,7 +3,8 @@ allocator.c
|
|||
benchmark.c
|
||||
bitreader.c
|
||||
bitwriter.c
|
||||
cfgrammar.c
|
||||
cfgrammar.c
|
||||
datastructures.c
|
||||
desugar.c
|
||||
glue.c
|
||||
hammer.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue