[llvm-commits] [poolalloc] r75141 - in /poolalloc/trunk: Makefile.common.in runtime/FL2Allocator/PoolAllocator.cpp

Haohui Mai mai4 at uiuc.edu
Thu Jul 9 09:44:39 PDT 2009


Author: mai4
Date: Thu Jul  9 11:44:39 2009
New Revision: 75141

URL: http://llvm.org/viewvc/llvm-project?rev=75141&view=rev
Log:
Fail the build if there are any warnings.


Modified:
    poolalloc/trunk/Makefile.common.in
    poolalloc/trunk/runtime/FL2Allocator/PoolAllocator.cpp

Modified: poolalloc/trunk/Makefile.common.in
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/Makefile.common.in?rev=75141&r1=75140&r2=75141&view=diff

==============================================================================
--- poolalloc/trunk/Makefile.common.in (original)
+++ poolalloc/trunk/Makefile.common.in Thu Jul  9 11:44:39 2009
@@ -19,6 +19,8 @@
 # Set the root directory of this project's install prefix
 PROJ_INSTALL_ROOT := @prefix@
 
+CXXFLAGS += -Werror -Wall -Wno-deprecated
+
 # Include LLVM's Master Makefile.
 include $(LLVM_SRC_ROOT)/Makefile.common
 

Modified: poolalloc/trunk/runtime/FL2Allocator/PoolAllocator.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/FL2Allocator/PoolAllocator.cpp?rev=75141&r1=75140&r2=75141&view=diff

==============================================================================
--- poolalloc/trunk/runtime/FL2Allocator/PoolAllocator.cpp (original)
+++ poolalloc/trunk/runtime/FL2Allocator/PoolAllocator.cpp Thu Jul  9 11:44:39 2009
@@ -27,7 +27,9 @@
 #define INITIAL_SLAB_SIZE 4096
 #define LARGE_SLAB_SIZE   4096
 
+#ifndef NDEBUG
 #define NDEBUG
+#endif
 
 #ifndef NDEBUG
 // Configuration macros.  Define up to one of these.





More information about the llvm-commits mailing list