summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-06-05 19:37:56 -0700
committerKhem Raj <raj.khem@gmail.com>2020-06-09 09:09:44 -0700
commit8046e94c8c2e9c14026f77ce76c96039e0a9226b (patch)
tree92155b83ee347583095d8d0ab25f69ed42fe4dd3
parent49556b3cb334bf305351db334aae1043fab369dd (diff)
downloadmeta-clang-8046e94c8c2e9c14026f77ce76c96039e0a9226b.tar.gz
apt: Disable c++11-narrowing and fortify
apt 1.8.2+ does not compile with clang, clang is finding narrowing warnings and printf function is redefined in tests which confuses the function signatures from libc when fortify is enabled, its therefore disabled for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--conf/nonclangable.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf
index 8a1c7f5..3702e5f 100644
--- a/conf/nonclangable.conf
+++ b/conf/nonclangable.conf
@@ -276,3 +276,13 @@ RUNTIME_pn-gerbera_toolchain-clang = "llvm"
276# let same compiler ( gcc or clang) be native/cross compiler 276# let same compiler ( gcc or clang) be native/cross compiler
277# | gcc: error: unrecognized command line option ‘-Qunused-arguments’ 277# | gcc: error: unrecognized command line option ‘-Qunused-arguments’
278BUILD_CC_pn-nss_toolchain-clang = "clang" 278BUILD_CC_pn-nss_toolchain-clang = "clang"
279
280# libnoprofile.c:19:5: error: expected parameter declarator
281# int printf(const char *format, ...) {
282# ^
283# error: non-constant-expression cannot be narrowed from type 'std::chrono::duration<
284#long long, std::ratio<1, 1> >::rep' (aka 'long long') to '__time_t' (aka 'long') in initializer list
285# [-Wc++11-narrowing]
286CXXFLAGS_append_pn-apt_toolchain-clang = " -Wno-c++11-narrowing"
287lcl_maybe_fortify_pn-apt_toolchain-clang = ""
288