History

Add missing const and add warning flags

Larry Doolittle committed 9 years ago

Commit 1b9935c1 parent 524f6df2 files · +2 −2Browse files

Unified · Split

2 files
  1. configure +1 −1
  2. tcctools.c +1 −1
configure+1−1
@@ -374,7 +374,7 @@ fi · 373 unmodified lines
374374
375375 # a final configuration tuning
376376 $cc -v --help > cc_help.txt 2>&1
377−W_OPTIONS="declaration-after-statement"
377+W_OPTIONS="declaration-after-statement undef strict-prototypes write-strings"
378378 for i in $W_OPTIONS; do
379379 O_PRESENT="$(grep -- -W$i cc_help.txt)"
380380 if test -n "$O_PRESENT"; then CFLAGS="$CFLAGS -W$i"; fi
tcctools.c+1−1
@@ -101,7 +101,7 @@ ST_FUNC int tcc_tool_ar(TCCState *s1, int argc, char **argv) · 100 unmodified lines
101101 char tfile[260], stmp[20];
102102 char *file, *name;
103103 int ret = 2;
104− char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.
104+ const char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.
105105 int verbose = 0;
106106
107107 i_lib = 0; i_obj = 0; // will hold the index of the lib and first obj

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t