Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
modem/modem.c put static declaration inside sregs_init(), that causes gcc4 to produce an error. Reproducible: Always Steps to Reproduce: 1. emerge slmodem 2. 3. Actual Results: make -C modem all make[1]: Entering directory `/home/chenxy/tmp/slmodem-2.9.9d/modem' rebuild profile... gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.c gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c modem.c: In function 'modem_reset': modem.c:1604: error: invalid storage class for function 'sregs_init' modem.c:1616: warning: implicit declaration of function 'sregs_init' modem.c: At top level: modem.c:1630: error: static declaration of 'sregs_init' follows non-static declaration modem.c:1616: error: previous implicit declaration of 'sregs_init' was here make[1]: *** [modem.o] Error 1 make[1]: Leaving directory `/home/chenxy/tmp/slmodem-2.9.9d/modem' make: *** [modem] Error 2 Expected Results: Compiled successfully.
Created an attachment (id=60011) [edit] simply moving static declaration out of the function sregs_init() fixes the bug
fixed in 2.9.9b and 2.9.9d