[Ada] Avoid unhelpful dead code warnings
Pierre-Marie de Rodat
Tue Jun 15 10:20:52 GMT 2021
We have an existing mechanism for suppressing dead code warning messages
in the case of an if-statement within an instance of a generic where the
value of the condition is known statically. Generalize this approach to
also handle case statements.
Tested on x86_64-pc-linux-gnu, committed on trunk
* exp_util.adb (Kill_Dead_Code): Generalize the existing
handling of if statements to handle case statements similarly.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2391 bytes
Desc: not available
More information about the Gcc-patches