You add that flag to CXXFLAGS on the configure command line. configure CXXFLAGS=-Wdeclaration-after-statement
Along with any other options you need. Vincent Torri <vincent.to...@gmail.com> wrote: >hello > >in my sources, i have both C and C++ files. Something like > >my_lib_la_SOURCES = foo.c foo.cpp > >I want to pass, for example, -Wdeclaration-after-statement to gcc. >Hence, >when compiling foo.cpp, i have the warning : > >cc1plus.exe: warning: command line option >'-Wdeclaration-after-statement' >is valid for C/ObjC but not for C++ > >How can I remove this warning when compiling c++ files ? > >thank you > >Vincent Torri -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.