diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-17 03:11:56 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-17 03:11:56 +0000 |
| commit | a03619d03a9ca6605c8ea1d3638c2b10c954edf9 (patch) | |
| tree | 263fd232223acac0326ea145263bfc241881229f /RenderScript | |
| parent | Cmake: downgraded minimum required version to 3.6 to allow Android build (diff) | |
| download | DiligentTools-a03619d03a9ca6605c8ea1d3638c2b10c954edf9.tar.gz DiligentTools-a03619d03a9ca6605c8ea1d3638c2b10c954edf9.zip | |
Fixed Android warnings
Diffstat (limited to 'RenderScript')
| -rw-r--r-- | RenderScript/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/RenderScript/CMakeLists.txt b/RenderScript/CMakeLists.txt index df7b3fe..aef4334 100644 --- a/RenderScript/CMakeLists.txt +++ b/RenderScript/CMakeLists.txt @@ -71,6 +71,13 @@ PUBLIC include ) +if(PLATFORM_ANDROID) + # Suppress warnings from applying the ‘offsetof’ macro to a non-POD type + # warning: offset of on non-standard-layout type [-Winvalid-offsetof] + # This is OK because the warning is generated for simple structs (such as TextureDesc) + # that fail to be a POD type only by virtue of having a constructor and comparison operator + target_compile_options(RenderScript PRIVATE -Wno-invalid-offsetof) +endif() source_group("source" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) |
