Skip to content

Commit

Permalink
Merge pull request #189 from mhaas/add-compiler-warnings-libhttpd
Browse files Browse the repository at this point in the history
Add compiler warnings for libhttpd
  • Loading branch information
acv committed Apr 14, 2015
2 parents b1a85f6 + 4787183 commit 8bd9427
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 30 deletions.
27 changes: 0 additions & 27 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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-@[email protected] $(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-@[email protected] $(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-@[email protected] /usr/src/RPM/SOURCES
rpmbuild -ta ${builddir}wifidog-@[email protected]

#clean-local:
# echo "clean-local: " && pwd
# rm -f /usr/src/RPM/SPECS/wifidog.spec
# rm -f /usr/src/RPM/SOURCES/wifidog-@[email protected]
8 changes: 5 additions & 3 deletions libhttpd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions libhttpd/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ httpdAddCContent(server, dir, name, indexFlag, preload, function)
httpd *server;
char *dir;
char *name;
int indexFlag;
int (*preload) ();
void (*function) ();
{
Expand Down Expand Up @@ -650,6 +651,7 @@ httpdAddStaticContent(server, dir, name, indexFlag, preload, data)
httpd *server;
char *dir;
char *name;
int indexFlag;
int (*preload) ();
char *data;
{
Expand Down

0 comments on commit 8bd9427

Please sign in to comment.