summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 53cbcf8..319678b 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -174,6 +174,17 @@ int slbt_get_driver_ctx(
case TAG_FEATURES:
cctx.drvflags |= SLBT_DRIVER_FEATURES;
break;
+
+ case TAG_WARNINGS:
+ if (!strcmp("all",entry->arg))
+ cctx.tag = SLBT_WARNING_LEVEL_ALL;
+
+ else if (!strcmp("error",entry->arg))
+ cctx.tag = SLBT_WARNING_LEVEL_ERROR;
+
+ else if (!strcmp("none",entry->arg))
+ cctx.tag = SLBT_WARNING_LEVEL_NONE;
+ break;
}
} else
nunits++;