diff options
author | midipix <writeonce@midipix.org> | 2016-04-06 20:15:02 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-06 20:39:22 -0400 |
commit | 1142bf2e13f411cf967c1ed8b4060d7829eb13bb (patch) | |
tree | 6f985388414e42d6e8b8d21b5a6c17646bc11fe3 /src/driver | |
parent | 55c95a829928ae9f053678a58a2145276cad9c08 (diff) | |
download | slibtool-1142bf2e13f411cf967c1ed8b4060d7829eb13bb.tar.bz2 slibtool-1142bf2e13f411cf967c1ed8b4060d7829eb13bb.tar.xz |
driver: warning level: initialize the appropriate struct member.
of the three compilers in use (gcc 5.3.0, clang 3.6.2, cparser 1.22.1),
this bug was only spotted by cparser.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 452cc7a..f81133e 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -632,13 +632,13 @@ int slbt_get_driver_ctx( case TAG_WARNINGS: if (!strcmp("all",entry->arg)) - cctx.tag = SLBT_WARNING_LEVEL_ALL; + cctx.warnings = SLBT_WARNING_LEVEL_ALL; else if (!strcmp("error",entry->arg)) - cctx.tag = SLBT_WARNING_LEVEL_ERROR; + cctx.warnings = SLBT_WARNING_LEVEL_ERROR; else if (!strcmp("none",entry->arg)) - cctx.tag = SLBT_WARNING_LEVEL_NONE; + cctx.warnings = SLBT_WARNING_LEVEL_NONE; break; case TAG_DEPS: |