[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing flags to C compiler but not to C++ compiler
From: |
Robert Boehne |
Subject: |
Re: passing flags to C compiler but not to C++ compiler |
Date: |
Sat, 27 Jul 2013 15:09:14 -0500 |
User-agent: |
K-9 Mail for Android |
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 <address@hidden> 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.
Re: passing flags to C compiler but not to C++ compiler,
Robert Boehne <=