From be31842b1c2e08106b3fc829b0c5304c7f7e96d7 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Fri, 9 Apr 2010 12:30:45 +0000 Subject: Future-proof gcc >= 4.3 test (Will break on version 5.0) svn-id: r48595 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2f6edb933e..b44288727c 100755 --- a/configure +++ b/configure @@ -2370,7 +2370,8 @@ if test "$have_gcc" = yes ; then add_line_to_config_mk 'CXX_UPDATE_DEP_FLAG = -MMD -MF "$(*D)/$(DEPDIR)/$(*F).d" -MQ "$@" -MP' fi; - if test "$_cxx_major" -ge "4" && test "$_cxx_minor" -ge "3" ; then + if test "$_cxx_major" -eq 4 && test "$_cxx_minor" -ge 3 || \ + test "$_cxx_major" -gt 4 ; then CXXFLAGS="$CXXFLAGS -Wno-empty-body" else CXXFLAGS="$CXXFLAGS -Wconversion" -- cgit v1.2.3