title: Android NDK: override Application.mk compiler flags
body: <p>Our project is written chiefly in pure C and has Application.mk with the following line:</p>
  
  <pre><code>APP_CFLAGS := -s -O3 -Wall -Wextra -Wstrict-prototypes
  </code></pre>
  
  <p>But one of the modules is written in C++, so I get the following warning when this module is being compiled:</p>
  
  <pre><code>cc1plus: warning: command line option '-Wstrict-prototypes' 
                   is valid for Ada/C/ObjC but not for C++ [enabled by default]
  </code></pre>
  
  <p>That is global flags contain an item which can be used with gcc , but not g++. 
  I am required to fix the warning.</p>
  
  <p>I have tried to add local cpp flags to my module's Android.mk:</p>
  
  <pre><code>LOCAL_CPPFLAGS := -Wno-strict-prototypes
  </code></pre>
  
  <p>But it doesn't override global flags and I get the same warning.</p>
  
  <p>Is there any way to get rid of this warning <strong>without modifying Application.mk</strong>?</p>