Jason Hellenthal
2012-Jun-07 13:29 UTC
usr.bin/fstat warnings being treated as errors on i386
Is anyone else seeing this on a vanilla source tree ? cc1: warnings being treated as errors /usr/src/usr.bin/fstat/fstat.c:159: warning: 'struct shmfd' declared inside parameter list /usr/src/usr.bin/fstat/fstat.c:159: warning: its scope is only this definition or declaration, which is probably not what you want /usr/src/usr.bin/fstat/fstat.c:951: warning: 'struct shmfd' declared inside parameter list /usr/src/usr.bin/fstat/fstat.c:952: error: conflicting types for 'shmtrans' /usr/src/usr.bin/fstat/fstat.c:159: error: previous declaration of 'shmtrans' was here /usr/src/usr.bin/fstat/fstat.c: In function 'shmtrans': /usr/src/usr.bin/fstat/fstat.c:953: error: storage size of 'shm' isn't known /usr/src/usr.bin/fstat/fstat.c:961: error: invalid application of 'sizeof' to incomplete type 'struct shmfd' /usr/src/usr.bin/fstat/fstat.c:961: error: invalid application of 'sizeof' to incomplete type 'struct shmfd' /usr/src/usr.bin/fstat/fstat.c:961: error: invalid application of 'sizeof' to incomplete type 'struct shmfd' /usr/src/usr.bin/fstat/fstat.c:953: warning: unused variable 'shm' *** Error code 1 -- - (2^(N-1))
On Thursday, June 07, 2012 9:29:20 am Jason Hellenthal wrote:> > Is anyone else seeing this on a vanilla source tree ? > > cc1: warnings being treated as errors > /usr/src/usr.bin/fstat/fstat.c:159: warning: 'struct shmfd' declared > inside parameter list > /usr/src/usr.bin/fstat/fstat.c:159: warning: its scope is only this > definition or declaration, which is probably not what you want > /usr/src/usr.bin/fstat/fstat.c:951: warning: 'struct shmfd' declared > inside parameter list > /usr/src/usr.bin/fstat/fstat.c:952: error: conflicting types for > 'shmtrans' > /usr/src/usr.bin/fstat/fstat.c:159: error: previous declaration of > 'shmtrans' was here > /usr/src/usr.bin/fstat/fstat.c: In function 'shmtrans': > /usr/src/usr.bin/fstat/fstat.c:953: error: storage size of 'shm' isn't > known > /usr/src/usr.bin/fstat/fstat.c:961: error: invalid application of > 'sizeof' to incomplete type 'struct shmfd' > /usr/src/usr.bin/fstat/fstat.c:961: error: invalid application of > 'sizeof' to incomplete type 'struct shmfd' > /usr/src/usr.bin/fstat/fstat.c:961: error: invalid application of > 'sizeof' to incomplete type 'struct shmfd' > /usr/src/usr.bin/fstat/fstat.c:953: warning: unused variable 'shm' > *** Error code 1I think you got part of a commit. Have you tried re-running csup? -- John Baldwin