Date: Wed, 17 Sep 1997 10:10:08 -0500 (CDT) From: Jim Bryant <jbryant@unix.tfs.net> To: freebsd-hackers@freebsd.org Subject: 2.2-STABLE lint Message-ID: <199709171510.KAA04527@argus.tfs.net>
next in thread | raw e-mail | index | archive | help
yeah, i'm finally cvsup'ed 2.2-STABLE... noticed a lot of compiler warnings, primarily: warning: comparison between signed and unsigned then at the very end [param.c], it crashed here: struct timezone tz = { TIMEZONE, DST }; giving the errors: cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I../../../include -DI386_CPU -DI486_CPU -DI586_CPU -DCOMPAT_LINUX -DUPDATE_INTERVAL=30 -DFASTLINKS -DQUOTA -DUMAPFS -DNULLFS -DKERNFS -DMFS -DCD9660 -DNFS -DFDESC -DMSDOSFS -DPROCFS -DFFS -DNETATALK -DIPX_ERRPRINTFS=0 -DIPXPRINTFS=0 -DIPX -DIPDIVERT -DIPFIREWALL_VERBOSE -DIPFIREWALL -DMROUTING -DINET -DSHMMAXPGS=128 -DSYSVSHM -DSYSVMSG -DSYSVSEM -DFIFO -DXSERVER -DUCONSOLE -DWANT_JOYSTICK_CONNECTED -DCOM_BIDIR -DSTAR_SAVER -DMAXCONS=16 -DAHC_SCBPAGING_ENABLE -DAHC_ALLOW_MEMIO -DAHC_TAGENABLE -DSCSI_REPORT_GEOMETRY -DFDSEEKWAIT=16 -DATAPI_STATIC -DATAPI -DDUMMY_NOPS -DAUTO_EOI_1 -DBOUNCE_BUFFERS -DCOMPAT_43 -DPROBE_VERBOSE -DDFLDSIZ=256*1024*1024 -DMAXDSIZ=256*1024*1024 -DPANIC_REBOOT_WAIT_TIME=30 -DPERFMON -DUSE_RTC_CENTURY -DCLK_USE_I586_CALIBRATION -DCLK_USE_I8254_CALIBRATION -DMD5 -DINCLUDE_CONFIG_FILE -DVISUAL_USERCONFIG -DUSERCONFIG -DFAILSAFE -DNSWAPDEV=1 -DNMBCLUSTERS=1024 -DOPEN_MAX=1024 -DCHILD_MAX=1024 -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 -DMAXUSERS=16 param.c param.c:82: `TIMEZONE' undeclared here (not in a function) param.c:82: initializer element for `tz.tz_minuteswest' is not constant param.c:82: `DST' undeclared here (not in a function) param.c:82: initializer element for `tz.tz_dsttime' is not constant *** Error code 1 Stop. After checking GENERIC, I could not find anything there, or in LINT, thus I don't think that it is even documented anywhere but in the souce, which states: /* * System parameter formulae. * * This file is copied into each directory where we compile * the kernel; it should be modified there to suit local taste * if necessary. * * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx */ What is the proper usage for these fields? Right now, I keep a UTC RTC. Would -DTIMEZONE=0 -DDST=0 be the ticket for my case? jim -- All opinions expressed are mine, if you | "I will not be pushed, stamped, think otherwise, then go jump into turbid | briefed, debriefed, indexed, or radioactive waters and yell WAHOO !!! | numbered!" - #1, "The Prisoner" ------------------------------------------------------------------------------ Inet: jbryant@tfs.net AX.25: kc5vdj@wv0t.#neks.ks.usa.noam grid: EM28PW voice: KC5VDJ - 6 & 2 Meters AM/FM/SSB, 70cm FM. http://www.tfs.net/~jbryant ------------------------------------------------------------------------------ HF/6M/2M: IC-706-MkII, 2M: HTX-212, 2M: HTX-202, 70cm: HTX-404, Packet: KPC-3+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709171510.KAA04527>