From 1142bf2e13f411cf967c1ed8b4060d7829eb13bb Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 07 2016 00:39:22 +0000 Subject: 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. --- 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: