Skip to content

Commit

Permalink
Configure: fixed compiler warnings with "-Wall -Wextra".
Browse files Browse the repository at this point in the history
  • Loading branch information
pluknet committed Jul 24, 2018
1 parent a1e2c55 commit d5c43bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion auto/lib/google-perftools/conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
ngx_feature_incs=
ngx_feature_path=
ngx_feature_libs="-lprofiler"
ngx_feature_test="ProfilerStop()"
ngx_feature_test="void ProfilerStop(void);
ProfilerStop()"
. auto/feature


Expand Down
6 changes: 4 additions & 2 deletions auto/lib/libgd/conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
ngx_feature_incs="#include <gd.h>"
ngx_feature_path=
ngx_feature_libs="-lgd"
ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);"
ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);
(void) img"
. auto/feature


Expand Down Expand Up @@ -76,7 +77,8 @@ if [ $ngx_found = yes ]; then

ngx_feature="GD WebP support"
ngx_feature_name="NGX_HAVE_GD_WEBP"
ngx_feature_test="gdImagePtr img = gdImageCreateFromWebpPtr(1, NULL);"
ngx_feature_test="gdImagePtr img = gdImageCreateFromWebpPtr(1, NULL);
(void) img"
. auto/feature

else
Expand Down
4 changes: 2 additions & 2 deletions auto/lib/libxslt/conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
ngx_feature_libs="-lxml2 -lxslt"
ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
xsltStylesheetPtr sheet = NULL;
xmlDocPtr doc;
doc = xmlParseChunk(ctxt, NULL, 0, 0);
xmlDocPtr doc = NULL;
xmlParseChunk(ctxt, NULL, 0, 0);
xsltApplyStylesheet(sheet, doc, NULL);"
. auto/feature

Expand Down
2 changes: 2 additions & 0 deletions auto/os/linux
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ ngx_feature_test="struct __user_cap_data_struct data;
data.effective = CAP_TO_MASK(CAP_NET_RAW);
data.permitted = 0;

(void) header;
(void) data;
(void) SYS_capset"
. auto/feature

Expand Down

0 comments on commit d5c43bf

Please sign in to comment.