From f26b1ad8bb6db6aa4e3f2235c73f828f8183e4b9 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 7 Jul 2020 09:31:09 +0800 Subject: [PATCH] build: don't compile with -Wno-uninitialized on darwin This flag has been enabled for Darwin targets since the initial commit in 4ed70a930202b103e7e80b8dc925e0aaa4622595. However, aside from the fact that we likely no longer want to suppress uninitialized warnings, this flag wont suppress them anyways, as it's included in the CXX flags before -Wall (which enables -Wuninitialized). i.e: ```bash g++ -std=gnu++11 ... -Wno-uninitialized ... -Wall ``` --- configure.ac | 3 --- 1 file changed, 3 deletions(-) diff --git a/configure.ac b/configure.ac index 800171f3..4d91df78 100644 --- a/configure.ac +++ b/configure.ac @@ -280,9 +280,6 @@ case "${host_os}" in libzmq_pedantic="no" libzmq_werror="no" AC_DEFINE(ZMQ_HAVE_OSX, 1, [Have DarwinOSX OS]) - AC_LANG_PUSH([C++]) - LIBZMQ_CHECK_LANG_FLAG_PREPEND([-Wno-uninitialized]) - AC_LANG_POP([C++]) ;; *haiku*) AC_DEFINE(ZMQ_HAVE_HAIKU, 1, [Have Haiku OS])