Frank Heckenbach wrote:
Adriaan van Os wrote:
[G4:~/testgpcadriaan] adriaan% cat NoUnderscore.p
program NoUnderscore;
procedure _Run; begin writeln('_Run') end;
begin _Run end.
[G4:~/testgpcadriaan] adriaan% gpc NoUnderscore.p NoUnderscore.p:4: warning: identifiers should not start with an underscore
[G4:~/testgpcadriaan] adriaan% gpc NoUnderscore.p -Wno-underscore
[G4:~/testgpcadriaan] adriaan% gpc NoUnderscore.p --gnu-pascal -Wno-underscore NoUnderscore.p:4: warning: identifiers should not start with an underscore
So, it seems that -Wno-underscore is broken when used with --gnu-pascal.
I can't seem to reproduce it. Did you perhaps try the options the other way around (`-Wno-underscore --gnu-pascal')? Then it would be expected behaviour since options are generally processed from left to right, and `--gnu-pascal', among other things (cf. p/gpc-options.h), sets `-Wunderscore'.
No, I thought of that. I tried various orderings and various compiler builds, all with the same result. Would somebody be so kind to try it on another platform ?
Regards,
Adriaan van Os