openbsd-ports/devel/libmemcached/patches/patch-configure
2011-04-14 11:17:49 +00:00

46 lines
2.0 KiB
Plaintext

$OpenBSD: patch-configure,v 1.2 2011/04/14 11:17:49 sebastia Exp $
get rid of a truckload of warnings when compiling
--- configure.orig Wed Mar 16 03:40:33 2011
+++ configure Fri Apr 1 01:47:32 2011
@@ -17719,7 +17719,7 @@ fi
fi
- CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
+ CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long ${CXX_WARNINGS_FULL}"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to use -Wmissing-declarations from C++" >&5
@@ -17868,7 +17868,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAG
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
save_CXXFLAGS="${CXXFLAGS}"
- CXXFLAGS="${W_FAIL} -pedantic -Wredundant-decls ${AM_CXXFLAGS}"
+ CXXFLAGS="${W_FAIL} -pedantic ${AM_CXXFLAGS}"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -17901,9 +17901,9 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_use_Wredundant_decls_" >&5
$as_echo "$ac_cv_safe_to_use_Wredundant_decls_" >&6; }
if test "$ac_cv_safe_to_use_Wredundant_decls_" = "yes"; then :
- CXX_WARNINGS="${CXX_WARNINGS} -Wredundant-decls"
+ CXX_WARNINGS="${CXX_WARNINGS} "
else
- CXX_WARNINGS="${CXX_WARNINGS} -Wno-redundant-decls"
+ CXX_WARNINGS="${CXX_WARNINGS} "
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to use -Wattributes from C++" >&5
@@ -18013,7 +18013,7 @@ fi
fi
- NO_REDUNDANT_DECLS="-Wno-redundant-decls"
+ NO_REDUNDANT_DECLS=""
PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow -Wno-missing-braces ${NO_ATTRIBUTES}"
NO_WERROR="-Wno-error"
PERMISSIVE_WARNINGS="-Wno-error -Wno-unused-function -fpermissive"