lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Converting to git


From: Wojciech A. Koszek
Subject: Re: [lwip-devel] Converting to git
Date: Mon, 25 Jul 2011 10:14:21 +0100
User-agent: Opera Mail/11.50 (Linux)

Dnia 25-07-2011 o 05:38:12 address@hidden <address@hidden> napisał(a):

Wojciech A. Koszek wrote:
It shouts because it can't find a function prototype:

./../src/core/pbuf.c
cc1: warnings being treated as errors
../../../../src/core/pbuf.c:115:1: error: no previous prototype for
‘pbuf_free_ooseq’
make[1]: *** [pbuf.o] Błąd 1
make[1]: Opuszczenie katalogu
`/home/wkoszek/r/sw/kos/net/lwip/ports/unix/proj/unixsim'
make: *** [all] Błąd 2

So essentially, it complains about fining a non-static function without finding a prototype for it, first? I didn't see gcc ever warn about this. But then again, we don't have the newest version for our cross-compilers (unfortunately)...

This is where you use a function, but declare it below the place of calling:

address@hidden:~/p/warn/1$ cat main.c
#include <stdio.h>

int
main()
{

        p();
}

void
p(void)
{

}
address@hidden:~/p/warn/1$ gcc main.c -o main
main.c:11:1: warning: conflicting types for ‘p’
main.c:7:2: note: previous implicit declaration of ‘p’ was here

--
Wojciech A. Koszek
address@hidden
http://FreeBSD.czest.pl/~wkoszek/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]