summaryrefslogtreecommitdiffstats
path: root/RenderScript
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-17 03:11:56 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-17 03:11:56 +0000
commita03619d03a9ca6605c8ea1d3638c2b10c954edf9 (patch)
tree263fd232223acac0326ea145263bfc241881229f /RenderScript
parentCmake: downgraded minimum required version to 3.6 to allow Android build (diff)
downloadDiligentTools-a03619d03a9ca6605c8ea1d3638c2b10c954edf9.tar.gz
DiligentTools-a03619d03a9ca6605c8ea1d3638c2b10c954edf9.zip
Fixed Android warnings
Diffstat (limited to 'RenderScript')
-rw-r--r--RenderScript/CMakeLists.txt7
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})