[CMake] how can I filter compiler warnings?
Kevin Burge
kevin.burge at systemware.com
Mon May 10 11:05:31 EDT 2010
Solaris, AIX, Windows, Linux.
On 05/10/2010 10:04 AM, Chuck Atkins wrote:
> What compiler / platform are you using?
>
>
>
> On Mon, May 10, 2010 at 9:53 AM, Kevin Burge
> <kevin.burge at systemware.com <mailto:kevin.burge at systemware.com>> wrote:
>
> Any ideas on how to do this kind of supression? I'm thinking now
> I just need to write a cc/c++ "script" that cmake will find first,
> that actually does the filtering. I never could figure out a way
> to forcefully indicate the compiler that didn't break things.
>
>
> On 05/07/2010 12:47 PM, Chuck Atkins wrote:
>> What exactly do you mean by "filter"? Do you want to suppress
>> the warnings?
>>
>>
>> On Fri, May 7, 2010 at 1:29 PM, Kevin Burge
>> <kevin.burge at systemware.com <mailto:kevin.burge at systemware.com>>
>> wrote:
>>
>> I need to be able to filter warnings out of the compilation
>> output from specific files:
>>
>> "/usr/include/pthread.h", line 990.27: 1506-450 (I) Obsolete
>> non-prototype-style function declaration.
>> "/usr/include/pthread.h", line 1049.42: 1506-450 (I) Obsolete
>> non-prototype-style function declaration.
>> "/usr/include/pthread.h", line 1050.42: 1506-450 (I) Obsolete
>> non-prototype-style function declaration
>>
>> On our old build system, we replaced cc with a ruby script
>> that filtered the output. I never did figure out the way to
>> do this with cmake. I'd rather have cmake filter it if it can.
>>
>> Please let me know if there's a way to do this.
>>
>> Thank you,
>> Kevin Burge
>>
>> _______________________________________________
>> Powered by www.kitware.com <http://www.kitware.com>
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100510/ae2bcf1a/attachment.htm>
More information about the CMake
mailing list