Date: Thu, 28 Jan 1999 21:40:39 +1100 From: Bruce Evans <bde@zeta.org.au> To: dillon@apollo.backplane.com, julian@whistle.com Cc: current@FreeBSD.ORG Subject: Re: -Wall -Wcast-qual and SYSINIT Message-ID: <199901281040.VAA03357@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>>From my uderstanding, SYSINIT should always point to a function with a >CONST argument because the argument is fixed as a constant at link/compile >time. > >what functions don't expect a const? and why not? Probably most. >or am I mising something? Only the initial value of the arg is determined at link/compile time. The arg can point to non-const storage, and it is not unreasonable to put the initial value in non-const storage so that it can be frobbed. Linker sets sometimes get frobbed. I once made execsw_set const and had to change it back after it started causing warnings. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901281040.VAA03357>
