diff options
| author | seyko <seyko2@gmail.com> | 2015-05-10 10:13:35 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-05-10 10:13:35 +0300 |
| commit | c497f9c82c5ac218fc9835a74020c247a04a4735 (patch) | |
| tree | 338c04388ed83bf1bbb5275ea995b9aaf7d4adec | |
| parent | 87a010960481c3e4effd1994714b78f47d13d6a7 (diff) | |
| download | tinycc-c497f9c82c5ac218fc9835a74020c247a04a4735.tar.gz tinycc-c497f9c82c5ac218fc9835a74020c247a04a4735.tar.bz2 | |
warn if multile -o option is given
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1936,6 +1936,10 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) s->option_m = tcc_strdup(optarg); break; case TCC_OPTION_o: + if (s->outfile) { + tcc_warning("multiple -o option"); + tcc_free(s->outfile); + } s->outfile = tcc_strdup(optarg); break; case TCC_OPTION_r: |
