[R-SIG-Mac] adding -Wall

Simon Urbanek simon.urbanek at r-project.org
Mon Dec 18 17:10:41 CET 2006


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