aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 16:32:25 +0300
committerseyko <seyko2@gmail.com>2015-03-03 16:32:25 +0300
commitb5f88b593a580956dfb74b6fb9ba9ab3e178bdf6 (patch)
tree0706ed18dd84cee1a712c6ef2cea174c514e5e34 /libtcc.c
parent7f36abd3f21fe0736bfe062f618e4fd1993bf806 (diff)
downloadtinycc-b5f88b593a580956dfb74b6fb9ba9ab3e178bdf6.tar.gz
tinycc-b5f88b593a580956dfb74b6fb9ba9ab3e178bdf6.tar.bz2
Turn on a implicit-function-declaration warning by default.
A non declared function leads to a seriuos problems. And while gcc don't turn this warning on lets tcc do it. This warning can be turned off by -Wno-implicit-function-declaration option. And autor must explicitly do this if program must be compiled with this warning off.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index f07699b..94f4324 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1045,6 +1045,7 @@ LIBTCCAPI TCCState *tcc_new(void)
".dynhashtab", SHF_PRIVATE);
s->alacarte_link = 1;
s->nocommon = 1;
+ s->warn_implicit_function_declaration = 1;
#ifdef CHAR_IS_UNSIGNED
s->char_is_unsigned = 1;