tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Werror-implicit-function-declaration


From: Michael Matz
Subject: Re: [Tinycc-devel] Werror-implicit-function-declaration
Date: Sun, 31 Dec 2017 17:28:29 +0100 (CET)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)

Hi,

On Thu, 28 Dec 2017, foobar wrote:

$ cat test.c
int t(int x) { return f(x)+1; }

$ tcc test.c -c -Werror || echo error
test.c:1: warning: implicit declaration of function 'f'
error

$ tcc test.c -c -Werror-implicit-function-declaration || echo error
test.c:1: warning: implicit declaration of function 'f'

$ tcc test.c -c -Werror=implicit-function-declaration || echo error
test.c:1: warning: implicit declaration of function 'f'

-Werror by itself seems to work, though it unexpectedly prints "warning" instead of error.

neither -Werror-implicit-function-declaration nor -Werror=implicit-function-declaration work though (the difference is the equals sign after Werror), even though that warning type is implemented.

would it be hard to make it work ? would it be a welcome addition ? any other thoughts ?

If you can make it work with just a few lines of code (which I think should be possible) I personally would welcome such addition.


Ciao,
Michael.



reply via email to

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