aboutsummaryrefslogtreecommitdiff
path: root/tcctools.c
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:28:05 -0700
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-07 21:28:05 -0700
commit1b9935cf36e83b389cb26008df93a654af3f2074 (patch)
tree791e19051707a12a67f9b66900cd69d02e5cf209 /tcctools.c
parent524f6dff17af73ec14529e5b0d444dfdda43d7c4 (diff)
downloadtinycc-1b9935cf36e83b389cb26008df93a654af3f2074.tar.gz
tinycc-1b9935cf36e83b389cb26008df93a654af3f2074.tar.bz2
Add missing const and add warning flags
Diffstat (limited to 'tcctools.c')
-rw-r--r--tcctools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcctools.c b/tcctools.c
index 21aa2a7..ac6850c 100644
--- a/tcctools.c
+++ b/tcctools.c
@@ -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