diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-10 22:51:01 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-12 10:10:12 -0800 |
commit | b5da0d78d2fde6abbfd387db4a3b218a5c301c20 (patch) | |
tree | 97d2104ff7d4321e7f9f061346033f7e05484acd /opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp | |
parent | c6f93a43d636b0ad16b75adf664c6a33d30b39dd (diff) | |
download | frameworks_native-b5da0d78d2fde6abbfd387db4a3b218a5c301c20.zip frameworks_native-b5da0d78d2fde6abbfd387db4a3b218a5c301c20.tar.gz frameworks_native-b5da0d78d2fde6abbfd387db4a3b218a5c301c20.tar.bz2 |
Frameworks/native: Add pragmas to glgen headers
The code currently being generated by glgen is not the cleanest, but
we would like to get core/jni onto -Werror. Thus add pragmas turning
off warnings locally to the C headers.
Also fix signed-comparison in two functions.
Longer term TODO: Emit clean code.
Change-Id: Iee8582f8c0c1de076d64851d3b6ca467afd5bc43
Diffstat (limited to 'opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp')
-rw-r--r-- | opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp b/opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp index c48ec7c..130612d 100644 --- a/opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp +++ b/opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp @@ -16,5 +16,9 @@ // This source file is automatically generated +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#pragma GCC diagnostic ignored "-Wunused-function" + #include <stdint.h> #include <GLES3/gl31.h> |