[vala/staging] compiler: Consider critical warnings fatal



commit c1c3dafbb190bce6b0c0d6253117e6be75f2930f
Author: Jürg Billeter <j bitron ch>
Date:   Tue Feb 9 19:49:36 2016 +0100

    compiler: Consider critical warnings fatal

 compiler/valacompiler.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index b19d5c5..a59fe9c 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -575,6 +575,8 @@ class Vala.Compiler {
                // initialize locale
                Intl.setlocale (LocaleCategory.ALL, "");
 
+               Log.set_always_fatal(LogLevelFlags.LEVEL_CRITICAL);
+
                if (Path.get_basename (args[0]) == "vala" || Path.get_basename (args[0]) == "vala" + 
Config.PACKAGE_SUFFIX) {
                        return run_source (args);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]