[R-SIG-Mac] adding -Wall
Kasper Daniel Hansen
khansen at stat.Berkeley.EDU
Tue Dec 19 00:24:43 CET 2006
Thanks for the help, I thought there would be some smart way of doing
it... (I also sent by a private email to Paul by accident, which is
superfluous now)
Kasper
On Dec 18, 2006, at 5:10 PM, Simon Urbanek wrote:
>
> On Dec 18, 2006, at 10:14 AM, Seth Falcon wrote:
>
>> Paul Roebuck <roebuck at mdanderson.org> writes:
>>
>>> On Sun, 17 Dec 2006, Kasper Daniel Hansen wrote:
>>>
>>>> For package development I would like to compile
>>>> with the -Wall flag. What is the best way to add
>>>> this?
>
> Probably the easiest [courtesy of Kurt]:
>
> mkdir ~/.R
> echo "CFLAGS=-g -O2 -Wall -pedantic" > ~/.R/Makevars
>
>
>>>> Should I just edit
>>>> R.Framework/Resources/ppc/etc/Makeconf
>>>> (I am on a G4), and add it to the CFLAGS, CXXFLAGS,
>>>> FFLAGS variables.
>>>> Or is there a better way, where I do not modify the
>>>> files in the framework?
>>>>
>>>> BTW: any reason why this is not enabled by default
>>>
>>> I'd leave the Framework Makeconf alone. It is not enabled
>>> by default because GCC is not guaranteed to be the compiler
>>> for CC.
>>
>> ? For the OSX _binary_, the compiler better be known in advance --
>> unless Simon et al are using some sort of quantum compiler ;-)
>>
>
> ... sometimes I have the feeling we do ;) [especially after
> spending a night to track down compiler bugs]
>
>
> Cheers,
> Simon
>
>
More information about the R-SIG-Mac
mailing list