From ce43003be3cc7b1ebc6ce80aa62035e8705b4eaa Mon Sep 17 00:00:00 2001 From: Michael Haas Date: Wed, 8 Apr 2015 13:18:17 +0200 Subject: [PATCH 1/3] Remove ancient ipkg make targets --- Makefile.am | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6961a7fa..bd4f559f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,30 +25,3 @@ EXTRA_DIST = \ .PHONY: doc doc: $(MAKE) -C doc doc - -.PHONY: whiterussianipk -whiterussianipk: dist - make -C $(OPENWRTSDK) distclean - mkdir -p $(OPENWRTSDK)/dl - cp -f ${srcdir}/wifidog-@VERSION@.tar.gz $(OPENWRTSDK)/dl/ - make -C ${srcdir}/contrib/build-openwrt-whiterussianipk/wifidog TOPDIR=$(OPENWRTSDK) PKG_MD5SUM= V=99 - @echo DONE. If there were no errors, your package should be in: $(OPENWRTSDK)/bin/packages/ - -.PHONY: kamikazeipk -kamikazeipk: dist - make -C $(OPENWRTSDK) distclean - mkdir -p $(OPENWRTSDK)/dl - cp -f ${srcdir}/wifidog-@VERSION@.tar.gz $(OPENWRTSDK)/dl/ - make -C ${srcdir}/contrib/build-openwrt-kamikazeipk/wifidog TOPDIR=$(OPENWRTSDK) PKG_MD5SUM= V=99 SDK=1 DEVELOPER=1 - @echo DONE. If there were no errors, your package should be in: $(OPENWRTSDK)/bin/packages/ - -.PHONY: rpm -rpm: dist - cp ${builddir}wifidog.spec /usr/src/RPM/SPECS - cp ${builddir}wifidog-@VERSION@.tar.gz /usr/src/RPM/SOURCES - rpmbuild -ta ${builddir}wifidog-@VERSION@.tar.gz - -#clean-local: -# echo "clean-local: " && pwd -# rm -f /usr/src/RPM/SPECS/wifidog.spec -# rm -f /usr/src/RPM/SOURCES/wifidog-@VERSION@.tar.gz From 468effb1ee686c3494253cc4c26681bf63d26b7d Mon Sep 17 00:00:00 2001 From: Michael Haas Date: Wed, 8 Apr 2015 13:21:36 +0200 Subject: [PATCH 2/3] Build libhttpd with -Wall -Wextra --- libhttpd/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libhttpd/Makefile.am b/libhttpd/Makefile.am index 0338fca8..ec8811cb 100644 --- a/libhttpd/Makefile.am +++ b/libhttpd/Makefile.am @@ -14,6 +14,8 @@ noinst_HEADERS = httpd_priv.h pkginclude_HEADERS = httpd.h EXTRA_DIST = README - -#AM_CPPFLAGS = \ -# -I${top_srcdir}/inc + +AM_CPPFLAGS = \ + -Wall \ + -Wextra \ + -Wno-unused-parameter From 4787183b2aae3d3a0172b90cdf4bcc06a4e43ca2 Mon Sep 17 00:00:00 2001 From: Michael Haas Date: Wed, 8 Apr 2015 13:22:57 +0200 Subject: [PATCH 3/3] Fix warnings about default types --- libhttpd/api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhttpd/api.c b/libhttpd/api.c index 38c6056f..acf12564 100644 --- a/libhttpd/api.c +++ b/libhttpd/api.c @@ -599,6 +599,7 @@ httpdAddCContent(server, dir, name, indexFlag, preload, function) httpd *server; char *dir; char *name; +int indexFlag; int (*preload) (); void (*function) (); { @@ -650,6 +651,7 @@ httpdAddStaticContent(server, dir, name, indexFlag, preload, data) httpd *server; char *dir; char *name; +int indexFlag; int (*preload) (); char *data; {