Kazuhiko
kazuh****@fdiar*****
2011年 12月 7日 (水) 00:44:20 JST
Hello, On 06/12/2011 06:51, Arnaud Fontaine wrote: > This means that if there is no other warning, gcc will not report > `-Wno-*' warning as an unrecognized command line option. For example if > you try to compile `int main(void) { return 0; }' with `gcc -o > /tmp/conftest -g -O2 -Wall -Wextra -Wno-INVALID-OPTION conftest.c', gcc > will display nothing and exit successfully. > > Moreover, gcc 4.3 aborts when there is an unknown command line even > without `-Werror' (with gcc 4.6.2, only a warning is displayed). > > I have attached to this email a patch for configure.ac which checks > `-WWARNING-FLAG' (which according to GCC manual always raises a warning > message) when checking `-Wno-WARNING-FLAG'. I have tested it with GCC > 4.3 and it seems to work well as `-Wno-unused-but-set-variable' is > properly detected as not available. Could you please consider applying > this patch if you think it's fine? I found that we also have such '-Wno-* ' check in mroonga. So this change should be also applied in mroonga's configure.ac. Kazuhiko