From 9e0fcb55a261752508ea200d7a4a7430a5a17fb0 Mon Sep 17 00:00:00 2001 From: Nicholas K Sauter Date: Thu, 7 Oct 2021 17:31:38 -0700 Subject: [PATCH] Trying to compile on gcc without warnings. Three warnings can be safety suppressed, but it would be better if the underlying code could be fixed so no gcc warnings are generated. --- libtbx/SConscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libtbx/SConscript b/libtbx/SConscript index f5124df8da..f9d9342538 100644 --- a/libtbx/SConscript +++ b/libtbx/SConscript @@ -629,7 +629,11 @@ else: env_etc.cxxflags_base.append("-std=c++0x") env_etc.cxx11_is_available = True if (libtbx.env.build_options.warning_level == 0): - warn_options = ["-w"] + warn_options = ["-w", +"-Wno-deprecated-declarations",# deep in boost python stack +"-Wno-maybe-uninitialized",#boost/boost/python/extract.hpp:185 +"-Wno-terminate",# dials difficulty +] env_etc._enable_more_warnings = "gcc" elif (libtbx.env.build_options.warning_level == 1): warn_options = gcc_common_warn_options()