use new compiler flag macro to disable tons of warnings
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Jun 2012 18:53:39 +0000 (18:53 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Jun 2012 18:53:39 +0000 (18:53 +0000)
thx vtorri!

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71858 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/ecore_con/Makefile.am

index 3ff39e4..bfa7edc 100644 (file)
@@ -1526,6 +1526,10 @@ if test "x${have_ecore_con}" = "xyes" ; then
 
 fi
 
+if test "x${have_cares}" != "xyes" -a "x${have_ipv6}" = "xyes" ; then
+   EFL_CHECK_COMPILER_FLAGS([ECORE_CON], [-Wno-override-init -Wno-initializer-overrides])
+fi
+
 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
 
 # ecore_ipc
index 296274c..0e8e071 100644 (file)
@@ -25,6 +25,8 @@ ecore_con_ssl.c \
 ecore_con_url.c \
 ecore_con_alloc.c
 
+libecore_con_la_CFLAGS = @WIN32_CFLAGS@
+
 if ECORE_HAVE_WIN32
 libecore_con_la_SOURCES += ecore_con_local_win32.c
 else
@@ -35,13 +37,13 @@ if HAVE_CARES
 libecore_con_la_SOURCES += ecore_con_ares.c
 else
 if HAVE_IPV6
+libecore_con_la_CFLAGS += @ECORE_CON_CFLAGS@
 libecore_con_la_SOURCES += ecore_con_dns.c dns.c dns.h
 else
 libecore_con_la_SOURCES += ecore_con_info.c
 endif
 endif
 
-libecore_con_la_CFLAGS = @WIN32_CFLAGS@
 libecore_con_la_LIBADD = \
 $(top_builddir)/src/lib/ecore/libecore.la \
 @SSL_LIBS@ @CURL_LIBS@ @EINA_LIBS@ @EVIL_LIBS@ @TLS_LIBS@ @CARES_LIBS@ @WIN32_LIBS@