Trying to compile on gcc without warnings.#668
Conversation
Three warnings can be safety suppressed, but it would be better if the underlying code could be fixed so no gcc warnings are generated.
|
Would like to be able to compile all code with libtbx.scons without generating gcc warnings. These three warning suppressions are currently needed (-Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-terminate"). Initiating a conversation in the hope that the underlying code can be fixed, so that these warning suppressions aren't needed. Asking for developer review. |
| warn_options = ["-w", | ||
| "-Wno-deprecated-declarations",# deep in boost python stack | ||
| "-Wno-maybe-uninitialized",#boost/boost/python/extract.hpp:185 | ||
| "-Wno-terminate",# dials difficulty |
There was a problem hiding this comment.
@nksauter aim is to initiate conversation about underlying code issues - here you tag dials -> let's discuss.
I too would like to live in a world where our compilers did not complain at length about our code. It has never sat well with me.
What is the error?
|
I'm specifically asking @bkpoon for information about fixing the underlying code, because I seem to remember discussing one of the warnings. I'm attaching a file showing the warnings squashed by -Wno-terminate in hope that this will restart the discussion. |
|
The |
Three warnings can be safety suppressed, but it would be better if
the underlying code could be fixed so no gcc warnings are generated.