On 05/02/18 23:01, Jon Perryman wrote:
I agree. The C compiler is good about discarding useless code but
never bothers to issue a warning.
I am not sure which compiler you are calling "*the* C compiler",
but Clang carries out extensive static analysis including
warning about unreachable code.
The HLASM assembler does not, however, carry out any static analysis
and does not warn about unreachable code.
--
Martin
Dr Martin Ward | Email: [email protected] | http://www.gkc.org.uk
G.K.Chesterton site: http://www.gkc.org.uk/gkc | Erdos number: 4