You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/08/19 22:35:28 UTC

[3/9] git commit: Warnings as errors flags for Sun C

Warnings as errors flags for Sun C


Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/8136d846
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/8136d846
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/8136d846

Branch: refs/heads/master
Commit: 8136d846a9d0a3ef61e5c04630f6a4ce7215a5ca
Parents: e8d79b6
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Tue Aug 19 19:54:40 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Tue Aug 19 22:32:10 2014 +0200

----------------------------------------------------------------------
 src/Charmonizer/Core/CFlags.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/8136d846/src/Charmonizer/Core/CFlags.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Core/CFlags.c b/src/Charmonizer/Core/CFlags.c
index 4c18c6f..a0542d7 100644
--- a/src/Charmonizer/Core/CFlags.c
+++ b/src/Charmonizer/Core/CFlags.c
@@ -183,6 +183,9 @@ chaz_CFlags_set_warnings_as_errors(chaz_CFlags *flags) {
     else if (flags->style == CHAZ_CFLAGS_STYLE_GNU) {
         string = "-Werror";
     }
+    else if (flags->style == CHAZ_CFLAGS_STYLE_SUN_C) {
+        string = "-errwarn=%all";
+    }
     else {
         chaz_Util_die("Don't know how to set warnings as errors with '%s'",
                       chaz_CC_get_cc());