Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/0ff9d858139328956cfe6...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/0ff9d858139328956cfe60a...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/0ff9d858139328956cfe60a29...
The branch, master has been updated
via 0ff9d858139328956cfe60a29f13b3315b6d2ce6 (commit)
from 5a5451a0c58903fe5b0590e01a0f06e53c44787d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commitdiff/0ff9d858139328956cf...
commit 0ff9d858139328956cfe60a29f13b3315b6d2ce6
Author: Vincent Sanders <vince(a)netsurf-browser.org>
Commit: Vincent Sanders <vince(a)netsurf-browser.org>
let monkey generate unused-but-set-variable without causing an error
diff --git a/monkey/Makefile.target b/monkey/Makefile.target
index b8891d3..18a7dae 100644
--- a/monkey/Makefile.target
+++ b/monkey/Makefile.target
@@ -33,7 +33,7 @@ $(eval $(call pkg_config_find_and_add,JS,mozilla-js,JavaScript))
# no pkg-config for this library
$(eval $(call feature_enabled,WEBP,-DWITH_WEBP,-lwebp -lvpx,WebP (libwebp)))
- MONKEYCFLAGS := -std=c99 -Dmonkey -Dnsmonkey \
+MONKEYCFLAGS := -std=c99 -Dmonkey -Dnsmonkey \
-D_BSD_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200112L \
@@ -45,10 +45,12 @@ $(eval $(call feature_enabled,WEBP,-DWITH_WEBP,-lwebp -lvpx,WebP
(libwebp)))
$(shell $(PKG_CONFIG) --cflags openssl) \
$(shell xml2-config --cflags)
- MONKEYLDFLAGS := -lm $(shell $(PKG_CONFIG) --cflags --libs glib-2.0 lcms)
+MONKEYLDFLAGS := -lm $(shell $(PKG_CONFIG) --cflags --libs glib-2.0 lcms)
- CFLAGS += $(MONKEYCFLAGS) -Werror -Wno-unused-but-set-variable
- LDFLAGS += $(MONKEYLDFLAGS)
+MONKEYWARNFLAGS := -Werror -Wno-error=unused-but-set-variable
+
+CFLAGS += $(MONKEYCFLAGS) $(MONKEYWARNFLAGS)
+LDFLAGS += $(MONKEYLDFLAGS)
# ---------------------------------------------------------------------------
# Windows flag setup
-----------------------------------------------------------------------
Summary of changes:
monkey/Makefile.target | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/monkey/Makefile.target b/monkey/Makefile.target
index b8891d3..18a7dae 100644
--- a/monkey/Makefile.target
+++ b/monkey/Makefile.target
@@ -33,7 +33,7 @@ $(eval $(call pkg_config_find_and_add,JS,mozilla-js,JavaScript))
# no pkg-config for this library
$(eval $(call feature_enabled,WEBP,-DWITH_WEBP,-lwebp -lvpx,WebP (libwebp)))
- MONKEYCFLAGS := -std=c99 -Dmonkey -Dnsmonkey \
+MONKEYCFLAGS := -std=c99 -Dmonkey -Dnsmonkey \
-D_BSD_SOURCE \
-D_XOPEN_SOURCE=600 \
-D_POSIX_C_SOURCE=200112L \
@@ -45,10 +45,12 @@ $(eval $(call feature_enabled,WEBP,-DWITH_WEBP,-lwebp -lvpx,WebP
(libwebp)))
$(shell $(PKG_CONFIG) --cflags openssl) \
$(shell xml2-config --cflags)
- MONKEYLDFLAGS := -lm $(shell $(PKG_CONFIG) --cflags --libs glib-2.0 lcms)
+MONKEYLDFLAGS := -lm $(shell $(PKG_CONFIG) --cflags --libs glib-2.0 lcms)
- CFLAGS += $(MONKEYCFLAGS) -Werror -Wno-unused-but-set-variable
- LDFLAGS += $(MONKEYLDFLAGS)
+MONKEYWARNFLAGS := -Werror -Wno-error=unused-but-set-variable
+
+CFLAGS += $(MONKEYCFLAGS) $(MONKEYWARNFLAGS)
+LDFLAGS += $(MONKEYLDFLAGS)
# ---------------------------------------------------------------------------
# Windows flag setup
--
NetSurf Browser