First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 94279
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Dialup Developers <net-dialup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Chen Xiangyang <chenxy@opencjk.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
slmodem-2.9.9b-gcc4.patch simply moving static declaration out of the function sregs_init() fixes the bug patch Chen Xiangyang 2005-05-28 06:32 0000 463 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 94279 depends on: Show dependency tree
Bug 94279 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-28 06:31 0000
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.

------- Comment #1 From Chen Xiangyang 2005-05-28 06:32:46 0000 -------
Created an attachment (id=60011) [edit]
simply moving static declaration out of the function sregs_init() fixes the bug

------- Comment #2 From Alin Năstac 2005-05-29 05:36:20 0000 -------
fixed in 2.9.9b and 2.9.9d

First Last Prev Next    No search results available      Search page      Enter new bug