The case statement fall-through generates a lot of compiler warnings during build.
This patch rewrites the conversion code to use while loops instead of switch/case statements.
This is my first commit. Added myself to the contributors list.
Differential D1432
Rewrite AtlasObjectXML.cpp to remove compiler warnings eecsninja on Apr 4 2018, 8:06 PM. Authored by
Details
The case statement fall-through generates a lot of compiler warnings during build. This patch rewrites the conversion code to use while loops instead of switch/case statements. This is my first commit. Added myself to the contributors list. Ran tests and they passed.
Diff Detail
Event TimelineComment Actions See rP20095 for a FALLTHROUGH statement. But your code also looks cleaner without the switch to begin with (deduplication). Which compiler did you use - I don't recall anyone reporting compile warnings on this file. Comment Actions In rP20095, the description mentions that AtlasObjectXML still has compiler warnings and suggests that it should be fixed. Comment Actions The modified code was introduced in rP6764. Said identical code was replaced in rP7201. So it looks like this should be fixed by deletion.
Comment Actions See above. The patch looks good though, so too bad we didn't notice the underlying issues sooner and thanks for the support regardless! |