[epiphany] Enable warnings when compiling the web extension
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Enable warnings when compiling the web extension
- Date: Wed, 27 Aug 2014 12:54:35 +0000 (UTC)
commit 4209900406ba4df4809f063475c26c9e726aa87b
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Aug 26 18:21:48 2014 -0500
Enable warnings when compiling the web extension
By accident, we don't use any compiler warnings when compiling the web
extension. This is bad.
We must either add -Wno-missing-prototypes or else declare a useless
prototype for webkit_web_extension_initialize_with_user_data().
https://bugzilla.gnome.org/show_bug.cgi?id=735491
configure.ac | 2 +-
embed/web-extension/Makefile.am | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8955d6e..2aa9dd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,7 +63,7 @@ GNOME_MAINTAINER_MODE_DEFINES
GNOME_CODE_COVERAGE
-MORE_WARN_FLAGS="-Wdeclaration-after-statement -Wno-deprecated-declarations"
+MORE_WARN_FLAGS="-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-missing-prototypes"
GLIB_REQUIRED=2.38.0
GTK_REQUIRED=3.13.0
diff --git a/embed/web-extension/Makefile.am b/embed/web-extension/Makefile.am
index 5bdb174..86b48b7 100644
--- a/embed/web-extension/Makefile.am
+++ b/embed/web-extension/Makefile.am
@@ -39,6 +39,7 @@ libephywebextension_la_CPPFLAGS = \
libephywebextension_la_CFLAGS = \
-DSHARE_DIR=\"$(pkgdatadir)\" \
-DTOP_SRC_DATADIR=\"$(top_srcdir)/data\" \
+ $(AM_CFLAGS) \
$(WEB_EXTENSION_CFLAGS)
libephywebextension_la_LIBADD = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]