remove a compilation warnings for libtest and test3
------------ libtest ------------
./libtcc_test lib_path=..
<string>:11: warning: implicit declaration of function 'printf'
<string>:13: warning: implicit declaration of function 'add'
------------ test3 ------------
tcctest.c:1982: warning: implicit declaration of function 'putchar'
tcctest.c:2133: warning: implicit declaration of function 'strlen'
This commit is contained in:
@ -16,6 +16,8 @@ int add(int a, int b)
|
||||
}
|
||||
|
||||
char my_program[] =
|
||||
"#include <stdio.h> // printf()\n"
|
||||
"extern int add(int a, int b);\n"
|
||||
"int fib(int n)\n"
|
||||
"{\n"
|
||||
" if (n <= 2)\n"
|
||||
|
||||
Reference in New Issue
Block a user