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
374 374
375# a final configuration tuning375# a final configuration tuning
376$cc -v --help > cc_help.txt 2>&1376$cc -v --help > cc_help.txt 2>&1
377W_OPTIONS="declaration-after-statement"377W_OPTIONS="declaration-after-statement undef strict-prototypes write-strings"
378for i in $W_OPTIONS; do378for i in $W_OPTIONS; do
379 O_PRESENT="$(grep -- -W$i cc_help.txt)"379 O_PRESENT="$(grep -- -W$i cc_help.txt)"
380 if test -n "$O_PRESENT"; then CFLAGS="$CFLAGS -W$i"; fi380 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
101 char tfile[260], stmp[20];101 char tfile[260], stmp[20];
102 char *file, *name;102 char *file, *name;
103 int ret = 2;103 int ret = 2;
104 char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.104 const char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.
105 int verbose = 0;105 int verbose = 0;
106 106
107 i_lib = 0; i_obj = 0; // will hold the index of the lib and first obj107 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