]> git.e2factory.org Git - e2factory.git/commitdiff
cleanup: fix warning code
authorGordon Hecker <gh@emlix.com>
Mon, 22 Feb 2010 17:19:47 +0000 (18:19 +0100)
committerGordon Hecker <gh@emlix.com>
Mon, 22 Feb 2010 17:20:39 +0000 (18:20 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/e2option.lua

index 50b8f22ad269553abe2f238d267a947864ac71a6..a073b85679db5897d91aab49e19ab89b121909bf 100644 (file)
@@ -336,19 +336,19 @@ function parse(args)
     i = i + 1
   end
   if opts["Wdefault"] or opts["Wall"] then
-    e2lib.warn_category.WDEFAULT = true
+    e2lib.globals.warn_category.WDEFAULT = true
   end
   if opts["Wdeprecated"] or opts["Wall"] then
-    e2lib.warn_category.WDEPRECATED = true
+    e2lib.globals.warn_category.WDEPRECATED = true
   end
   if opts["Wnoother"] then
-    e2lib.warn_category.WOTHER = false
+    e2lib.globals.warn_category.WOTHER = false
   end
   if opts["Wpolicy"] or opts["Wall"] then
-    e2lib.warn_category.WPOLICY = true
+    e2lib.globals.warn_category.WPOLICY = true
   end
   if opts["Whint"] or opts["Wall"] then
-    e2lib.warn_category.WHINT = true
+    e2lib.globals.warn_category.WHINT = true
   end
   e2option.opts = opts
   return opts, vals