gpre C++ compiler warnings with GCC 4.4.1 [CORE3022] #3403
Submitted by: @AlexPeshkoff
Issue was reported and patch provided by Daniel Dodson <mailto:email@example.com>
When compiling generated C++ from gpre I was receiving a warning "ambiguous else statement". From the following kind of statement...
it was outputting, in part, the following code
Legally I don't think this is a problem because the else statement applies to the nearest 'if' statement (so the second one in this case). However I didn't want to add a rule to ignore this warning because that would be bad practise in hand crafted C++ and I would want it highlighted. So rather than add a rule for different flags I decided to modify gpre so that the following is produced...
The text was updated successfully, but these errors were encountered: