summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-06 20:15:02 -0400
committermidipix <writeonce@midipix.org>2016-04-06 20:39:22 -0400
commit1142bf2e13f411cf967c1ed8b4060d7829eb13bb (patch)
tree6f985388414e42d6e8b8d21b5a6c17646bc11fe3
parent55c95a829928ae9f053678a58a2145276cad9c08 (diff)
downloadslibtool-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.
-rw-r--r--src/driver/slbt_driver_ctx.c6
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: