On 02.09.2010 09:29, Stephan Witt wrote:
> Am 02.09.2010 um 09:03 schrieb Peter Kümmel:
> 
>> On 02.09.2010 07:54, Stephan Witt wrote:
>>> Am 01.09.2010 um 08:01 schrieb Abdelrazak Younes:
>>>
>>>> On 09/01/2010 01:38 AM, Uwe Stöhr wrote:
>>>>>
>>>>> However, this compilation error remains:
>>>>>
>>>>> 10>..\..\src\LyX.cpp(288) : error C4101: 'message' : unreferenced local 
>>>>> variable
>>>>>
>>>>> The attached patch fixes also this error for me (debug and release mode).
>>>>
>>>>> It seems that MSVC doesn't allow to use empty catched exceptions.
>>>>
>>>> No, this is a warning about unused variabled but CMake treats these as 
>>>> error (on purpose). This is to avoid to let unused variables everywhere 
>>>> like it used to be.
>>>
>>> Just for the record: the compiler flags CMake generates for Xcode are 
>>> sub-optimal than.
>>> I cannot see that type of warning with Xcode. I have to compile on Linux to 
>>> catch them.
>>> And the build with autotools spits out other warnings again. Not nice.
>>> The compiler for Linux is gcc 4.4.1 and for MacOSX gcc 4.2.1.
>>>
>>> Stephan
>>
>> -Wall is enabled for GCC, could you check if it's also used in Xcode?
> 
> A picture says more then 1000 words... These are the activated warnings:
> 

Unused parameters is not checked.

> 
> Maybe CMake says -Wall and Xcode does not know what this implies?

svn up:
I've added -Wunused-parameter in addition to -Wall, does this help?

> 
> Stephan

Reply via email to