Closed dschlaep closed 8 years ago
Pull-request #23 successfully builds on win-builder.com: "Status: 2 WARNINGs, 1 NOTE"
v1.2.2 passes win-builder (devtools::build_win()): closes #18
00check.log:
- DONE
- Status: 2 WARNINGs, 1 NOTE
00install.out:
- packaged installation of 'Rsoilwat31' as Rsoilwat31_1.2.2.zip
- DONE (Rsoilwat31)
** arch - i386 d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Control.c -o SW_Control.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Files.c -o SW_Files.o SW_Files.c: In function 'onGet_SW_F': SW_Files.c:171:13: warning: unused variable 'j' [-Wunused-variable] int i = 0, j = 0; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Flow.c -o SW_Flow.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Flow_lib.c -o SW_Flow_lib.o SW_Flow_lib.c: In function 'adjust_Tsoil_by_freezing_and_thawing': SW_Flow_lib.c:1525:45: warning: unused variable 'sFusionPool_actual' [-Wunused-variable] double deltaTemp, Cis, sFusionPool[nlyrs], sFusionPool_actual[nlyrs]; ^ SW_Flow_lib.c:1525:25: warning: unused variable 'sFusionPool' [-Wunused-variable] double deltaTemp, Cis, sFusionPool[nlyrs], sFusionPool_actual[nlyrs]; ^ SW_Flow_lib.c:1525:20: warning: unused variable 'Cis' [-Wunused-variable] double deltaTemp, Cis, sFusionPool[nlyrs], sFusionPool_actual[nlyrs]; ^ SW_Flow_lib.c:1525:9: warning: unused variable 'deltaTemp' [-Wunused-variable] double deltaTemp, Cis, sFusionPool[nlyrs], sFusionPool_actual[nlyrs]; ^ SW_Flow_lib.c: In function 'surface_temperature_under_snow': SW_Flow_lib.c:1326:10: warning: 'tSoilAvg' may be used uninitialized in this function [-Wmaybe-uninitialized] double tSoilAvg; /* the average temeperature of the soil surface _/ ^ SW_Flow_lib.c: In function 'soil_temperature': SW_Flow_lib.c:1815:21: warning: 'tSoilAvg' may be used uninitialized in this function [-Wmaybe-uninitialized] surfaceTemp[Today] = T1; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Main.c -o SW_Main.o SW_Main.c:61:13: warning: 'check_log' declared 'static' but never defined [-Wunused-function] static void check_log(void); ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Main_Function.c -o SW_Main_Function.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Markov.c -o SW_Markov.o SW_Markov.c: In function 'onSet_MKV_prob': SW_Markov.c:276:23: warning: unused variable 'std' [-Wunused-variable] RealF wet, dry, avg, std; ^ SW_Markov.c:276:18: warning: unused variable 'avg' [-Wunused-variable] RealF wet, dry, avg, std; ^ SW_Markov.c:276:13: warning: unused variable 'dry' [-Wunused-variable] RealF wet, dry, avg, std; ^ SW_Markov.c:276:8: warning: unused variable 'wet' [-Wunused-variable] RealF wet, dry, avg, std; ^ SW_Markov.c: In function 'onSet_MKV_conv': SW_Markov.c:364:7: warning: unused variable 'dim' [-Wunused-variable] SEXP dim; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Model.c -o SW_Model.o SW_Model.c: In function 'onGet_SW_MDL': SW_Model.c:214:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Output.c -o SW_Output.o SW_Output.c: In function 'onSet_SW_OUT': SW_Output.c:766:34: warning: unused variable 'KEY' [-Wunused-variable] SEXP sep, timestep,useTimeStep, KEY; ^ SW_Output.c:764:7: warning: unused variable 'ext' [-Wunused-variable] char ext[10]; ^ SW_Output.c: In function 'get_estab': SW_Output.c:1337:7: warning: unused variable 'str' [-Wunused-variable] char str[10]; ^ SW_Output.c: In function 'get_temp': SW_Output.c:1421:8: warning: unused variable 'surfaceTempVal' [-Wunused-variable] RealD surfaceTempVal = SW_MISSING; ^ SW_Output.c:1420:28: warning: unused variable 'v_max' [-Wunused-variable] RealD v_min = SW_MISSING, v_max = SW_MISSING; ^ SW_Output.c:1420:8: warning: unused variable 'v_min' [-Wunused-variable] RealD v_min = SW_MISSING, v_max = SW_MISSING; ^ SW_Output.c:1419:8: warning: unused variable 'v_avg' [-Wunused-variable] RealD v_avg = SW_MISSING; ^ SW_Output.c: In function 'get_precip': SW_Output.c:1530:31: warning: unused variable 'val_snowloss' [-Wunused-variable] val_snowmelt = SW_MISSING, val_snowloss = SW_MISSING; ^ SW_Output.c:1530:4: warning: unused variable 'val_snowmelt' [-Wunused-variable] val_snowmelt = SW_MISSING, val_snowloss = SW_MISSING; ^ SW_Output.c:1529:53: warning: unused variable 'val_snow' [-Wunused-variable] RealD val_ppt = SW_MISSING, val_rain = SW_MISSING, val_snow = SW_MISSING, ^ SW_Output.c:1529:30: warning: unused variable 'val_rain' [-Wunused-variable] RealD val_ppt = SW_MISSING, val_rain = SW_MISSING, val_snow = SW_MISSING, ^ SW_Output.c:1529:8: warning: unused variable 'val_ppt' [-Wunused-variable] RealD val_ppt = SW_MISSING, val_rain = SW_MISSING, val_snow = SW_MISSING, ^ SW_Output.c: In function 'get_swcBulk': SW_Output.c:1877:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_swpMatric': SW_Output.c:2001:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_swaBulk': SW_Output.c:2072:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_swaMatric': SW_Output.c:2138:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING, convert; ^ SW_Output.c: In function 'get_surfaceWater': SW_Output.c:2214:8: warning: unused variable 'val_surfacewater' [-Wunused-variable] RealD val_surfacewater = SW_MISSING; ^ SW_Output.c: In function 'get_runoff': SW_Output.c:2273:4: warning: unused variable 'val_snowRunoff' [-Wunused-variable] val_snowRunoff = SW_MISSING; ^ SW_Output.c:2272:38: warning: unused variable 'val_surfaceRunoff' [-Wunused-variable] RealD val_totalRunoff = SW_MISSING, val_surfaceRunoff = SW_MISSING, ^ SW_Output.c:2272:8: warning: unused variable 'val_totalRunoff' [-Wunused-variable] RealD val_totalRunoff = SW_MISSING, val_surfaceRunoff = SW_MISSING, ^ SW_Output.c: In function 'get_evapSoil': SW_Output.c:2764:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_evapSurface': SW_Output.c:2830:18: warning: unused variable 'val_water' [-Wunused-variable] SW_MISSING, val_water = SW_MISSING; ^ SW_Output.c:2829:52: warning: unused variable 'val_litter' [-Wunused-variable] val_shrub = SW_MISSING, val_grass = SW_MISSING, val_litter = ^ SW_Output.c:2829:28: warning: unused variable 'val_grass' [-Wunused-variable] val_shrub = SW_MISSING, val_grass = SW_MISSING, val_litter = ^ SW_Output.c:2829:4: warning: unused variable 'val_shrub' [-Wunused-variable] val_shrub = SW_MISSING, val_grass = SW_MISSING, val_litter = ^ SW_Output.c:2828:53: warning: unused variable 'val_forb' [-Wunused-variable] RealD val_tot = SW_MISSING, val_tree = SW_MISSING, val_forb = SW_MISSING, ^ SW_Output.c:2828:30: warning: unused variable 'val_tree' [-Wunused-variable] RealD val_tot = SW_MISSING, val_tree = SW_MISSING, val_forb = SW_MISSING, ^ SW_Output.c:2828:8: warning: unused variable 'val_tot' [-Wunused-variable] RealD val_tot = SW_MISSING, val_tree = SW_MISSING, val_forb = SW_MISSING, ^ SW_Output.c: In function 'get_interception': SW_Output.c:2936:52: warning: unused variable 'val_litter' [-Wunused-variable] val_shrub = SW_MISSING, val_grass = SW_MISSING, val_litter = ^ SW_Output.c:2936:28: warning: unused variable 'val_grass' [-Wunused-variable] val_shrub = SW_MISSING, val_grass = SW_MISSING, val_litter = ^ SW_Output.c:2936:4: warning: unused variable 'val_shrub' [-Wunused-variable] val_shrub = SW_MISSING, val_grass = SW_MISSING, val_litter = ^ SW_Output.c:2935:53: warning: unused variable 'val_forb' [-Wunused-variable] RealD val_tot = SW_MISSING, val_tree = SW_MISSING, val_forb = SW_MISSING, ^ SW_Output.c:2935:30: warning: unused variable 'val_tree' [-Wunused-variable] RealD val_tot = SW_MISSING, val_tree = SW_MISSING, val_forb = SW_MISSING, ^ SW_Output.c:2935:8: warning: unused variable 'val_tot' [-Wunused-variable] RealD val_tot = SW_MISSING, val_tree = SW_MISSING, val_forb = SW_MISSING, ^ SW_Output.c: In function 'get_soilinf': SW_Output.c:3037:8: warning: unused variable 'val_inf' [-Wunused-variable] RealD val_inf = SW_MISSING; ^ SW_Output.c: In function 'get_lyrdrain': SW_Output.c:3095:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_hydred': SW_Output.c:3168:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_aet': SW_Output.c:3415:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ SW_Output.c: In function 'get_pet': SW_Output.c:3489:8: warning: unused variable 'val' [-Wunused-variable] RealD val = SW_MISSING; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Site.c -o SW_Site.o SW_Site.c: In function 'onGet_SW_LYR': SW_Site.c:516:8: warning: variable 'temp' set but not used [-Wunused-but-set-variable] RealD temp; ^ SW_Site.c: In function 'onSet_SW_LYR': SW_Site.c:560:6: warning: unused variable 'x' [-Wunused-variable] int x, i, j, columns; ^ SW_Site.c: In function 'onGet_SW_SIT': SW_Site.c:717:8: warning: unused variable 'cSoilTemperatureConstants' [-Wunused-variable] char cSoilTemperatureConstants[] = { "Values", "CalcSoilTemp" }; ^ SW_Site.c: In function 'onSet_SW_SIT': SWSite.c:869:2: warning: unused variable 'rgnlow' [-Wunused-variable] rgnlow; / lower layer of region _/ ^ SWSite.c:868:14: warning: unused variable 'region' [-Wunused-variable] LyrIndex r, region, / transp region definition number _/ ^ SW_Site.c:867:18: warning: unused variable 'x' [-Wunused-variable] int lineno = 0, x; ^ SW_Site.c:867:6: warning: unused variable 'lineno' [-Wunused-variable] int lineno = 0, x; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Sky.c -o SW_Sky.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_SoilWater.c -o SW_SoilWater.o SW_SoilWater.c: In function 'onGet_SW_SWC': SW_SoilWater.c:275:12: warning: unused variable 'SWC_names' [-Wunused-variable] SEXP SWC, SWC_names; ^ SW_SoilWater.c:272:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ SW_SoilWater.c: In function 'SW_SWC_new_year': SW_SoilWater.c:484:39: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] v->hist.swc[(int) (i / MAX_LAYERS)][(int) (j % MAX_LAYERS)] = p_lyrs[i + MAX_DAYS * MAX_LAYERS * 2]; ^ SW_SoilWater.c:478:9: note: 'j' was declared here int i, j; ^ SW_SoilWater.c: In function 'onGet_SW_SWC_hist': SW_SoilWater.c:460:43: warning: 'j' is used uninitialized in this function [-Wuninitialized] p_lyrs[i + MAX_DAYS * MAX_LAYERS * 1] = (int) (j % MAX_LAYERS); ^ SW_SoilWater.c: In function 'onSet_SW_SWC_hist': SW_SoilWater.c:484:39: warning: 'j' is used uninitialized in this function [-Wuninitialized] v->hist.swc[(int) (i / MAX_LAYERS)][(int) (j % MAX_LAYERS)] = p_lyrs[i + MAX_DAYS * MAX_LAYERS \ 2]; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_VegEstab.c -o SW_VegEstab.o SW_VegEstab.c: In function 'onSet_SW_VES': SW_VegEstab.c:174:19: warning: unused variable 'SPPS' [-Wunused-variable] SEXP use, count, SPPS; ^ SW_VegEstab.c: In function 'onSet_SW_VES_spp': SWVegEstab.c:467:7: warning: unused variable 'name' [-Wunused-variable] char name[80]; / only allow 4 char sppnames _/ ^ SW_VegEstab.c:466:6: warning: unused variable 'lineno' [-Wunused-variable] int lineno = 0; ^ SW_VegEstab.c:464:12: warning: unused variable 'nitems' [-Wunused-variable] const int nitems = 15; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_VegProd.c -o SW_VegProd.o SW_VegProd.c: In function 'onGet_SW_VPD': SW_VegProd.c:550:16: warning: unused variable 'VegProd_names' [-Wunused-variable] SEXP VegProd, VegProd_names; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c SW_Weather.c -o SW_Weather.o SW_Weather.c: In function 'onGet_SW_WTH': SW_Weather.c:394:15: warning: unused variable 'SW_WTH_names' [-Wunused-variable] SEXP SW_WTH, SW_WTH_names; ^ SW_Weather.c: In function 'onGet_WTH_DATA': SW_Weather.c:528:6: warning: unused variable 'years' [-Wunused-variable] int years = ((SW_Model.endyr + 1) - SW_Model.startyr), i = 0; ^ In file included from SW_Weather.c:48:0: SW_Weather.c: In function 'onSet_WTH_DATA': SW_Defines.h:111:26: warning: 'tmpmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
define missing(x) ( EQ(fabs( (x) ), SW_MISSING) )
SW_Weather.c:617:8: note: 'tmpmax' was declared here RealF tmpmax, tmpmin, ppt, acc = 0.0; ^ In file included from SW_Weather.c:48:0: SW_Defines.h:111:26: warning: 'tmpmin' may be used uninitialized in this function [-Wmaybe-uninitialized]
define missing(x) ( EQ(fabs( (x) ), SW_MISSING) )
SW_Weather.c:617:16: note: 'tmpmin' was declared here RealF tmpmax, tmpmin, ppt, acc = 0.0; ^ In file included from SW_Weather.c:48:0: SW_Defines.h:111:26: warning: 'ppt' may be used uninitialized in this function [-Wmaybe-uninitialized]
define missing(x) ( EQ(fabs( (x) ), SW_MISSING) )
SW_Weather.c:617:24: note: 'ppt' was declared here RealF tmpmax, tmpmin, ppt, acc = 0.0; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c Times.c -o Times.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c filefuncs.c -o filefuncs.o filefuncs.c:148:15: warning: extra tokens at end of #ifdef directive
ifdef _WIN32 || WIN64 / 32- and 64-bit Windows OS: Windows XP, Vista, 7, 8 */
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c generic.c -o generic.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c mymemory.c -o mymemory.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.3.1/include" -DNDEBUG -D RSOILWAT -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c rands.c -o rands.o D:\Compiler\gcc-4.9.3\mingw_32\bin\nm.exe: SW_R_lib.o: File format not recognized d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -shared -s -static-libgcc -o Rsoilwat31.dll tmp.def SW_Control.o SW_Files.o SW_Flow.o SW_Flow_lib.o SW_Main.o SW_Main_Function.o SW_Markov.o SW_Model.o SW_Output.o SW_R_lib.o SW_Site.o SW_Sky.o SW_SoilWater.o SW_VegEstab.o SW_VegProd.o SW_Weather.o Times.o filefuncs.o generic.o mymemory.o rands.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R-3.3.1/bin/i386 -lR SW_R_lib.o: file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'Rsoilwat31'