2.5.3pre compile warnings

Eric Whiting ewhiting at amis.com
Fri Feb 8 02:26:07 EST 2002


Dave,

I just got the latest snapshot and compiled. I'll run 2.5.3pre on a few
boxes and see how it acts.. Is --compress safe again?

I know not all the warnings are of concern, but I thought I'd bounce my
warning output to you.
gcc version 2.95.3 20010315 (SuSE)

The zlib/ warnings about missing braces don't sound very good.

eric



gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c exclude.c -o exclude.o
exclude.c:137: warning: `/*' within comment
exclude.c:137: warning: `/*' within comment


gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c main.c -o main.o
main.c: In function `sigusr1_handler':
main.c:785: warning: unused parameter `val'
main.c: In function `sigusr2_handler':
main.c:789: warning: unused parameter `val'
main.c: In function `sigchld_handler':
main.c:795: warning: unused parameter `val'


gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c log.c -o log.o
log.c: In function `log_transfer':
log.c:568: warning: unused parameter `file'


gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c options.c -o options.o
options.c:273: warning: missing initializer
options.c:273: warning: (near initialization for
`long_options[0].descrip')
options.c:274: warning: missing initializer
options.c:274: warning: (near initialization for `long_options[1].val')
options.c:275: warning: missing initializer
options.c:275: warning: (near initialization for `long_options[2].val')
options.c:276: warning: missing initializer
options.c:276: warning: (near initialization for `long_options[3].val')
options.c:277: warning: missing initializer
options.c:277: warning: (near initialization for `long_options[4].val')
options.c:278: warning: missing initializer
options.c:278: warning: (near initialization for `long_options[5].val')
options.c:279: warning: missing initializer
options.c:279: warning: (near initialization for
`long_options[6].descrip')
options.c:280: warning: missing initializer
options.c:280: warning: (near initialization for `long_options[7].val')
options.c:281: warning: missing initializer
options.c:281: warning: (near initialization for `long_options[8].val')
options.c:282: warning: missing initializer
options.c:282: warning: (near initialization for `long_options[9].val')
options.c:283: warning: missing initializer
options.c:283: warning: (near initialization for `long_options[10].val')
options.c:284: warning: missing initializer
options.c:284: warning: (near initialization for `long_options[11].val')
options.c:285: warning: missing initializer
options.c:285: warning: (near initialization for
`long_options[12].descrip')
options.c:286: warning: missing initializer
options.c:286: warning: (near initialization for `long_options[13].val')
options.c:287: warning: missing initializer
options.c:287: warning: (near initialization for `long_options[14].val')
options.c:288: warning: missing initializer
options.c:288: warning: (near initialization for
`long_options[15].descrip')
options.c:289: warning: missing initializer
options.c:289: warning: (near initialization for
`long_options[16].descrip')
options.c:290: warning: missing initializer
options.c:290: warning: (near initialization for
`long_options[17].descrip')
options.c:291: warning: missing initializer
options.c:291: warning: (near initialization for
`long_options[18].descrip')
options.c:292: warning: missing initializer
options.c:292: warning: (near initialization for `long_options[19].val')
options.c:293: warning: missing initializer
options.c:293: warning: (near initialization for
`long_options[20].descrip')
options.c:294: warning: missing initializer
options.c:294: warning: (near initialization for `long_options[21].val')
options.c:295: warning: missing initializer
options.c:295: warning: (near initialization for `long_options[22].val')
options.c:296: warning: missing initializer
options.c:296: warning: (near initialization for `long_options[23].val')
options.c:297: warning: missing initializer
options.c:297: warning: (near initialization for `long_options[24].val')
options.c:298: warning: missing initializer
options.c:298: warning: (near initialization for `long_options[25].val')
options.c:299: warning: missing initializer
options.c:299: warning: (near initialization for `long_options[26].val')
options.c:300: warning: missing initializer
options.c:300: warning: (near initialization for `long_options[27].val')
options.c:301: warning: missing initializer
options.c:301: warning: (near initialization for `long_options[28].val')
options.c:302: warning: missing initializer
options.c:302: warning: (near initialization for
`long_options[29].descrip')
options.c:303: warning: missing initializer
options.c:303: warning: (near initialization for `long_options[30].val')
options.c:304: warning: missing initializer
options.c:304: warning: (near initialization for `long_options[31].val')
options.c:305: warning: missing initializer
options.c:305: warning: (near initialization for `long_options[32].val')
options.c:306: warning: missing initializer
options.c:306: warning: (near initialization for `long_options[33].val')
options.c:307: warning: missing initializer
options.c:307: warning: (near initialization for `long_options[34].val')
options.c:308: warning: missing initializer
options.c:308: warning: (near initialization for `long_options[35].val')
options.c:309: warning: missing initializer
options.c:309: warning: (near initialization for `long_options[36].val')
options.c:310: warning: missing initializer
options.c:310: warning: (near initialization for
`long_options[37].descrip')
options.c:311: warning: missing initializer
options.c:311: warning: (near initialization for
`long_options[38].descrip')
options.c:312: warning: missing initializer
options.c:312: warning: (near initialization for
`long_options[39].descrip')
options.c:313: warning: missing initializer
options.c:313: warning: (near initialization for `long_options[40].val')
options.c:314: warning: missing initializer
options.c:314: warning: (near initialization for
`long_options[41].descrip')
options.c:315: warning: missing initializer
options.c:315: warning: (near initialization for `long_options[42].val')
options.c:316: warning: missing initializer
options.c:316: warning: (near initialization for `long_options[43].val')
options.c:317: warning: missing initializer
options.c:317: warning: (near initialization for `long_options[44].val')
options.c:318: warning: missing initializer
options.c:318: warning: (near initialization for `long_options[45].val')
options.c:319: warning: missing initializer
options.c:319: warning: (near initialization for `long_options[46].val')
options.c:320: warning: missing initializer
options.c:320: warning: (near initialization for `long_options[47].val')
options.c:321: warning: missing initializer
options.c:321: warning: (near initialization for `long_options[48].val')
options.c:322: warning: missing initializer
options.c:322: warning: (near initialization for `long_options[49].val')
options.c:324: warning: missing initializer
options.c:324: warning: (near initialization for `long_options[50].val')
options.c:325: warning: missing initializer
options.c:325: warning: (near initialization for `long_options[51].val')
options.c:326: warning: missing initializer
options.c:326: warning: (near initialization for `long_options[52].val')
options.c:327: warning: missing initializer
options.c:327: warning: (near initialization for `long_options[53].val')
options.c:328: warning: missing initializer
options.c:328: warning: (near initialization for `long_options[54].val')
options.c:329: warning: missing initializer
options.c:329: warning: (near initialization for `long_options[55].val')
options.c:330: warning: missing initializer
options.c:330: warning: (near initialization for `long_options[56].val')
options.c:331: warning: missing initializer
options.c:331: warning: (near initialization for `long_options[57].val')
options.c:332: warning: missing initializer
options.c:332: warning: (near initialization for
`long_options[58].descrip')
options.c:333: warning: missing initializer
options.c:333: warning: (near initialization for
`long_options[59].descrip')
options.c:334: warning: missing initializer
options.c:334: warning: (near initialization for `long_options[60].val')
options.c:335: warning: missing initializer
options.c:335: warning: (near initialization for `long_options[61].val')
options.c:336: warning: missing initializer
options.c:336: warning: (near initialization for `long_options[62].val')
options.c:337: warning: missing initializer
options.c:337: warning: (near initialization for `long_options[63].val')
options.c:338: warning: missing initializer
options.c:338: warning: (near initialization for
`long_options[64].descrip')
options.c:339: warning: missing initializer
options.c:339: warning: (near initialization for `long_options[65].val')
options.c:340: warning: missing initializer
options.c:340: warning: (near initialization for `long_options[66].val')
options.c:341: warning: missing initializer
options.c:341: warning: (near initialization for
`long_options[67].descrip')
options.c:342: warning: missing initializer
options.c:342: warning: (near initialization for
`long_options[68].descrip')
options.c:344: warning: missing initializer
options.c:344: warning: (near initialization for
`long_options[69].descrip')
options.c:345: warning: missing initializer
options.c:345: warning: (near initialization for
`long_options[70].descrip')
options.c:347: warning: missing initializer
options.c:347: warning: (near initialization for `long_options[71].val')

gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c zlib/inftrees.c -o
zlib/inftrees.o
In file included from zlib/inftrees.c:395:
zlib/inffixed.h:13: warning: missing braces around initializer
zlib/inffixed.h:13: warning: (near initialization for
`fixed_tl[0].word.what')
zlib/inffixed.h:118: warning: missing braces around initializer
zlib/inffixed.h:118: warning: (near initialization for
`fixed_td[0].word.what')
zlib/inftrees.c: In function `inflate_trees_fixed':
zlib/inftrees.c:404: warning: unused parameter `z'
















Dave Dykstra wrote:
> 
> On Wed, Feb 06, 2002 at 04:29:49PM -0700, Eric Whiting wrote:
> > Dave,
> >
> > I tried the snapshot... I get an error (after a ./configure;make).
> >
> > gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c main.c -o main.o
> > main.c: In function `do_cmd':
> > main.c:184: `RSYNC_RSH' undeclared (first use in this function)
> >
> > I added the #define to config.h and it compiled ok with a lot of
> > warnings.. (SUSE 7.3)
> 
> Martin forgot to run autoconf and autoheader.  I just ran them and checked
> in the files, and they're in "unpacked" now.
> 
> - Dave




More information about the rsync mailing list