Re:Compiler Warnings
by kazinator on Thursday January 24, 2019 @05:30PM
(#18993709)
> -Wdeclaration-after-statement : this flag is useful for C90 compatibility.
This option is rather for developers who want to avoid declarations after statements in C dialects that support them.
If you want to enforce actual C90 compatibility use -ansi or -std=c90. Otherwise you just have partial compatibility which is actually incompatibility.
This option is rather for developers who want to avoid declarations after statements in C dialects that support them.
If you want to enforce actual C90 compatibility use -ansi or -std=c90. Otherwise you just have partial compatibility which is actually incompatibility.