[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Werror-implicit-function-declaration
From: |
foobar |
Subject: |
[Tinycc-devel] Werror-implicit-function-declaration |
Date: |
Thu, 28 Dec 2017 15:22:15 +0000 |
$ 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 ?
- [Tinycc-devel] Werror-implicit-function-declaration,
foobar <=