]> granicus.if.org Git - icinga2/commitdiff
Fix build warning.
authorGunnar Beutner <gunnar@beutner.name>
Sun, 1 Sep 2013 04:04:23 +0000 (06:04 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sun, 1 Sep 2013 04:04:23 +0000 (06:04 +0200)
lib/base/base.vcxproj
lib/base/base.vcxproj.filters
lib/base/debug.h

index 34040ed01d742db16b564f907bf648cd042b6c2f..b779f7aafb2ce82fd68c9c0e0631f9c5cbf10d0b 100644 (file)
@@ -68,6 +68,7 @@
     <ClInclude Include="bufferedstream.h" />
     <ClInclude Include="consolelogger.h" />
     <ClInclude Include="convert.h" />
+    <ClInclude Include="debug.h" />
     <ClInclude Include="dynamicobject.h" />
     <ClInclude Include="dictionary.h" />
     <ClInclude Include="dynamictype.h" />
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
+</Project>
\ No newline at end of file
index 3db70d8b722e8f3bfbded65a418827a9e960cddd..b9c12fd4de92986d920f8f709654e15d033382aa 100644 (file)
     <ClInclude Include="scriptvariable.h">
       <Filter>Headerdateien</Filter>
     </ClInclude>
+    <ClInclude Include="debug.h">
+      <Filter>Headerdateien</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <Filter Include="Quelldateien">
       <UniqueIdentifier>{7bbee99c-5763-4063-836c-ddbcc8966ae3}</UniqueIdentifier>
     </Filter>
   </ItemGroup>
-</Project>
+</Project>
\ No newline at end of file
index c86e1e80d08e9fa693ce7b829d6e4f6b1e50bec6..9bb485683eebe831d18038008bf57599605515ba 100644 (file)
@@ -44,7 +44,9 @@ inline int icinga_assert_fail(const char *expr, const char *file, int line)
        fprintf(stderr, "%s:%d: assertion failed: %s\n", file, line, expr);
        abort();
 
+#ifndef __GNUC__
        return 0;
+#endif /* __GNUC__ */
 }
 
 #endif /* DEBUG_H */