NOAA-EMC / RTOFS_GLO

0 stars 1 forks source link

Fix the RTOFS v2 code compile warning messages (bugzilla #1129) #8

Open DanIredell-NOAA opened 2 years ago

DanIredell-NOAA commented 2 years ago

http://www2.spa.ncep.noaa.gov/bugzilla/show_bug.cgi?id=1129

Please fix the RTOFS v2 code compile warning messages at next upgrade - Bugzilla ticket is submitted for compiling warnings , from sorc/rtofs_code.fd/rtofsglo.compile.code.log: filter.c:29:8: warning: variable ‘hot’ set but not used [-Wunused-but-set-variable] filter.c:28:7: warning: unused variable ‘i’ [-Wunused-variable] skel.c:150:17: warning: unused variable ‘nfreqs’ [-Wunused-variable] skel.c:150:7: warning: variable ‘nobs’ set but not used [-Wunused-but-set-variable] skel.c:321:15: warning: variable ‘tlon’ set but not used [-Wunused-but-set-variable] skel.c:265:32: warning: variable ‘l4’ set but not used [-Wunused-but-set-variable] skel.c:265:24: warning: variable ‘l3’ set but not used [-Wunused-but-set-variable] skel.c:265:16: warning: variable ‘l2’ set but not used [-Wunused-but-set-variable] skel.c:265:8: warning: variable ‘l1’ set but not used [-Wunused-but-set-variable] skel.c:264:32: warning: variable ‘w4’ set but not used [-Wunused-but-set-variable] skel.c:264:24: warning: variable ‘w3’ set but not used [-Wunused-but-set-variable] skel.c:264:16: warning: variable ‘w2’ set but not used [-Wunused-but-set-variable] skel.c:264:8: warning: variable ‘w1’ set but not used [-Wunused-but-set-variable] skel.c:234:7: warning: unused variable ‘nobs’ [-Wunused-variable]

DanIredell-NOAA commented 2 years ago

FYI, this log is from WCOSS1.

DanIredell-NOAA commented 11 months ago

In WCOSS2, and with the modules that are loaded for this compilation, these warning messages do not occur. If the modules loaded are changed and craype is not loaded, then the warning messages do occur. path to cc when module craype is not loaded -- /usr/bin/cc path to cc when module craype is loaded -- /opt/cray/pe/craype/2.7.17/bin/cc