LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Recompiling kernel : warning messages - why? (https://www.linuxquestions.org/questions/linux-software-2/recompiling-kernel-warning-messages-why-48717/)

Q*Bert 03-07-2003 10:05 AM

Recompiling kernel : warning messages - why?
 
I get messages like these when I recompile my kernel:

Code:

i810_dma.c:531: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:533: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:534: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:536: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:537: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:545: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:551: warning: concatenation of string literals with __FUNCTION__ is deprecated
i810_dma.c:553: warning: concatenation of string literals with __FUNCTION__ is deprecated

Later:
Code:

usr/src/linux-2.4.18-26.8.0/include/linux/modules/suspend.ver:2:1: warning: this is the location of the previous definition
And:
Code:

{standard input}:1198: Warning: indirect lcall without `*'
{standard input}:1280: Warning: indirect lcall without `*'
{standard input}:1295: Warning: indirect lcall without `*'

I'm not interested in what these particular messages mean (actually I don't care), and I know they're only warnings, but why they happen. I'm guessing three possibilities:

1. The sections of code are old but just haven't been taken out.
2. The sections of code are current but not matched to my hardware (and perhaps that section of code shouldn't be compiled at all!).
3. The gcc messages are just progress markers for Mr. Cox and Mr. Torvalds, and are not actually warnings.

Any ideas?

Q*Bert

Palin 03-07-2003 10:14 AM

which version of gcc are you compiling with if its a version 3 or above I think this is what causes the errors.

Q*Bert 03-07-2003 12:44 PM

They've always appeared, even when I used gcc2.9*.

Mara 03-07-2003 01:34 PM

In longer projects there are always pieces of code which are not 100% clean. When a programmer know why warnings appears and accepts it, everything's OK. Plus there might be old code accepted by prevous versions of gcc (<2.9).


All times are GMT -5. The time now is 10:35 AM.