Support -Werror
[reactos.git] / reactos / tools / rbuild / backend / mingw / modulehandler.cpp
index 03e2514..9290027 100644 (file)
@@ -1445,6 +1445,8 @@ MingwModuleHandler::GenerateOtherMacros ()
        string globalCflags = "-g";\r
        if ( backend->usePipe )\r
                globalCflags += " -pipe";\r
+       if ( !module.enableWarnings )\r
+               globalCflags += " -Werror";\r
        \r
        fprintf (\r
                fMakefile,\r