summaryrefslogtreecommitdiff
path: root/thirdparty/snappy
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-15 07:49:36 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-15 07:49:36 +0000
commit8e5e3794ff2b95b1799f1bfe0dd097908fd84d99 (patch)
treeab29a9bb3c9ec7efe76a846b48166b583ccfe9b9 /thirdparty/snappy
parentf1baf3782aa58215623ff5001290539a26392e6a (diff)
cmake: Set -fno-strict-aliasing everywhere.
Diffstat (limited to 'thirdparty/snappy')
-rw-r--r--thirdparty/snappy/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/thirdparty/snappy/CMakeLists.txt b/thirdparty/snappy/CMakeLists.txt
index f0b0cf02..dbe8b706 100644
--- a/thirdparty/snappy/CMakeLists.txt
+++ b/thirdparty/snappy/CMakeLists.txt
@@ -5,7 +5,8 @@ add_definitions (
# Adjust warnings
if (NOT MSVC)
- add_definitions (-Wno-unused-function)
+ add_compiler_flags (-Wno-unused-function)
+ add_compiler_flags (-fstrict-aliasing)
endif ()
add_convenience_library (snappy_bundled EXCLUDE_FROM_ALL