lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


For the record, gcc's man page does say that if you want to abort the
compiler if it finds anything not on the std you're using (through the
--std parameter) - not only C89 or C99 -, you must use -pedantic .

So I use it quite a lot. =)

On 10/5/11, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
> On 6/10/2011, at 10:05 AM, Luiz Henrique de Figueiredo wrote:
>
>> We also use -Wall -Wextra when compiling Lua.
>
> -Wextra gets the c++ comment (wouldn't it be nice if -Wall did what it
> said!)
>
> On 6/10/2011, at 9:56 AM, Sean Conner wrote:
>
>> I think you might want to try "gcc -pedantic -ansi" or "gcc -pedantic
>> -std=c89".
>
> and -pedantic gets the variable declaration in the middle of the block.
>
> Thanks!
>

-- 
Sent from my mobile device

NI!