diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-09-17 13:29:17 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-09-17 13:31:54 +0200 |
commit | 1e5e5c4022d582e2bef86425560f5109d41bdd63 (patch) | |
tree | 9b52f5aa51d6b952a22ac80ba0c9a3fffb326587 | |
parent | af875ebebc79023c22c7c78b539ed60e58a57fdf (diff) |
avoid C++11 narrowing conversion error with clang
/home/tinderbox/clang-master-build/solver/unxlngi6/inc/external/boost/uuid/seed_rng.hpp:143:61:
error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned int' in initializer list [-Wc++11-narrowing]
unsigned int rn[] = { std::rand(), std::rand(), std::rand() };
Change-Id: Iea9808492cd3fbcf078e61bbc184bdc434e7cd8a
-rw-r--r-- | libcmis/StaticLibrary_cmis.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcmis/StaticLibrary_cmis.mk b/libcmis/StaticLibrary_cmis.mk index 23b600d59717..1e338652250e 100644 --- a/libcmis/StaticLibrary_cmis.mk +++ b/libcmis/StaticLibrary_cmis.mk @@ -11,6 +11,14 @@ $(eval $(call gb_StaticLibrary_StaticLibrary,cmislib)) $(eval $(call gb_StaticLibrary_set_warnings_not_errors,cmislib)) +ifeq ($(COM_GCC_IS_CLANG),TRUE) +# Avoid narrowing conversion error (even though the option is technically a warning) +# caused by boost. +$(eval $(call gb_StaticLibrary_add_cxxflags,cmislib,\ + -Wno-error=c++11-narrowing \ +)) +endif + $(eval $(call gb_StaticLibrary_use_unpacked,cmislib,cmis)) $(eval $(call gb_StaticLibrary_use_package,cmislib,libcmis_inc)) |