mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
Add missing const and add warning flags
This commit is contained in:
parent
524f6dff17
commit
1b9935cf36
2
configure
vendored
2
configure
vendored
@ -374,7 +374,7 @@ fi
|
||||
|
||||
# a final configuration tuning
|
||||
$cc -v --help > cc_help.txt 2>&1
|
||||
W_OPTIONS="declaration-after-statement"
|
||||
W_OPTIONS="declaration-after-statement undef strict-prototypes write-strings"
|
||||
for i in $W_OPTIONS; do
|
||||
O_PRESENT="$(grep -- -W$i cc_help.txt)"
|
||||
if test -n "$O_PRESENT"; then CFLAGS="$CFLAGS -W$i"; fi
|
||||
|
@ -101,7 +101,7 @@ ST_FUNC int tcc_tool_ar(TCCState *s1, int argc, char **argv)
|
||||
char tfile[260], stmp[20];
|
||||
char *file, *name;
|
||||
int ret = 2;
|
||||
char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.
|
||||
const char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.
|
||||
int verbose = 0;
|
||||
|
||||
i_lib = 0; i_obj = 0; // will hold the index of the lib and first obj
|
||||
|
Loading…
Reference in New Issue
Block a user