Hi: I am working on some code in a package I'm writing and I'm getting the
warning below when I do
the install on a newly installed fedora 16 OS. But when I run the same
install on windows, I don't get the error.  and when I used to run the
install on Fedora 14 ( I missed Fedora 15 ), I didn't get the warning
there either ?

Does anyone know what the problem might be ? Maybe a difference with gcc ?
It's only a warning but it scares me a little because the variables should
be getting used contrary to what the warning says.
Thanks a lot for any hints/suggestions.

My session Info is below and the install output is after that. and happy
holidays to all also. and

#=======================================================================

 sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: i386-redhat-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
LC_TIME=C                  LC_COLLATE=C
LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 LC_NAME=C
LC_ADDRESS=C               LC_TELEPHONE=C
LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] datasets  graphics  tools     grid      stats     utils     grDevices
methods   base

other attached packages:
 [1] bmod_0.0-10.1       FinTS_0.4-4         numDeriv_2010.11-1
fgui_1.0-2          lmtest_0.9-29       RSQLite_0.10.0
DBI_0.2-5           filehash_2.2
 [9] gridExtra_0.8.5     latticeExtra_0.6-19 RColorBrewer_1.0-5
lattice_0.20-0      zoo_1.7-6           chron_2.3-42

loaded via a namespace (and not attached):
[1] tcltk_2.14.0
>

#======================================================================

OUTPUT WHEN INSTALLING THE PACKAGE
#=========================================================================

:~/research/R/Rlibs/library> R CMD INSTALL -l .  bmod_0.0-10.1.tar.gz

[1] "LC_CTYPE=C;LC_NUMERIC=C;LC_
TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C"
[1] "LOADING MASS LIBRARY"
[1] "LOADING LATTICE LIBRARY"
* installing *source* package 'bmod' ...
** libs
gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c ar1_functions.c -o ar1_functions.o
ar1_functions.c: In function ‘calc_ar1_hessian’:
ar1_functions.c:261:10: warning: variable ‘phigrad’ set but not used
[-Wunused-but-set-variable]
ar1_functions.c:260:10: warning: variable ‘alphagrad’ set but not used
[-Wunused-but-set-variable]
ar1_functions.c:259:10: warning: variable ‘betagrad’ set but not used
[-Wunused-but-set-variable]
ar1_functions.c:258:10: warning: variable ‘rhograd’ set but not used
[-Wunused-but-set-variable]
gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c ma1_functions.c -o ma1_functions.o
ma1_functions.c: In function ‘calc_ma1_hessian’:
ma1_functions.c:246:10: warning: variable ‘alphagrad’ set but not used
[-Wunused-but-set-variable]
ma1_functions.c:245:10: warning: variable ‘betagrad’ set but not used
[-Wunused-but-set-variable]
ma1_functions.c:244:10: warning: variable ‘rhograd’ set but not used
[-Wunused-but-set-variable]
gcc -m32 -std=gnu99 -shared -Wl,-z,relro -o bmod.so ar1_functions.o
ma1_functions.o -L/usr/lib/R/lib -lR
installing to /home/markleeds/research/R/Rlibs/library/bmod/libs
** R
** demo
** inst
** preparing package for lazy loading
** help
No man pages found in package  'bmod'
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
[1]
"LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C"
[1] "LOADING MASS LIBRARY"
[1] "LOADING LATTICE LIBRARY"

* DONE (bmod)
:~/research/R/Rlibs/library>

	[[alternative HTML version deleted]]

