gcc 로 빌드하다보면 다음과 같은 warning 을 만나게 된다.
warning: function declaration isn't a prototype
신경쓰여서 찾아봤더니 다음과 같은 의미가 있다고 한다.
warning 없는 compile 을 위하여...
> gcc: gcc version 2.95.3 20010315 (release)
>
> i get these warnings on a project i'm trying to port using
> arm-linux-gcc .. is there some place i can find a more detailed
> description of what these warnings mean and how i can clean them up? i
> am having problems with my project and suspect that it is related to
> these prototypes being mis-handled as the function declaration,
> instead of just being handled as a prototype ..
The warning means that the code does something like this:
extern int foo ();
The warning message will include a file name and line number you can
use to see where this is happening.
You can turn off the warning with -Wno-strict-prototypes (or simply by
omitting -Wstrict-prototypes).
Ian
'Programming > Linux_Kernel' 카테고리의 다른 글
Linux Kernel 에 대한 문서들 (0) | 2008.11.12 |
---|---|
ptrace 번역 (0) | 2008.11.11 |
HOWTO do Linux kernel development (0) | 2008.10.28 |
sigaction() (0) | 2008.10.20 |
blocked signal 검사와 변경 : sigprocmask (0) | 2008.10.20 |