title: Disabling clang C++11 warnings
body: <p>I cannot for the life of me get clang to stop warning me about C++11 extensions. Anywhere I use "auto" or any other C++11 extension it spits out a warning.</p>
  
  <p>I have the flag <code>-Wno-c++11-extension</code> but it still prints them.</p>
  
  <p>Here's my makefile:</p>
  
  <pre><code>CXX = clang++
  CXXFLAGS = -std=c++11 -Wall -Wno-c++11-extensions
  LIBS = -lglfw -lGL -lGLU -lGLEW
  
  OBJ_DIR = bin
  LIB_DIR = -L/usr/lib
  INC_DIR = -I/usr/include
  
  SOURCE = $(wildcard *.cpp)
  OBJECTS = ${SOURCE:%.cpp=$(OBJ_DIR)/%.o}
  EXECUTABLE = vox
  ARGS = -w1024 -h800
  
  .PHONY: init clean
  
  all: init $(OBJECTS) $(EXECUTABLE)
  
  $(EXECUTABLE): $(OBJECTS)
      $(CXX) $(CXXFLAGS) $(LIB_DIR) -o $@ $(OBJECTS) $(LIBS)
  
  $(OBJ_DIR)/%.o: %.cpp
      $(CXX) $(INC_DIR) -c $&lt; -g -o $@ 
  
  run: init $(EXECUTABLE)
      @echo $(ls . | grep *.cpp)
      @./$(EXECUTABLE) $(ARGS)
  
  init:
      @mkdir -p "$(OBJ_DIR)"
  
  clean:
      @rm -rf $(OBJ_DIR) $(EXECUTABLE)
  </code></pre>
  
  <p>Here's my <code>clang++ --version</code> output</p>
  
  <pre><code>Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based on LLVM 3.2)
  Target: x86_64-pc-linux-gnu
  Thread model: posix
  </code></pre>