diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2018-07-24 18:46:54 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-07-24 18:46:54 +0300 |
| commit | d5c43bf51c9c62d26c4c2c09a4a337d8b8b1c060 (patch) | |
| tree | 02cf43eaf5f1b8c451b0ecf30455fd15ae7a956e /auto/lib | |
| parent | a1e2c5566c628dbf39e3f6c105ddc1dde5b41a58 (diff) | |
| download | nginx-d5c43bf51c9c62d26c4c2c09a4a337d8b8b1c060.tar.gz nginx-d5c43bf51c9c62d26c4c2c09a4a337d8b8b1c060.tar.bz2 | |
Configure: fixed compiler warnings with "-Wall -Wextra".
Diffstat (limited to 'auto/lib')
| -rw-r--r-- | auto/lib/google-perftools/conf | 3 | ||||
| -rw-r--r-- | auto/lib/libgd/conf | 6 | ||||
| -rw-r--r-- | auto/lib/libxslt/conf | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/auto/lib/google-perftools/conf b/auto/lib/google-perftools/conf index 5d5ddaef6..7f1a91139 100644 --- a/auto/lib/google-perftools/conf +++ b/auto/lib/google-perftools/conf @@ -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 diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf index 87761f14d..678639767 100644 --- a/auto/lib/libgd/conf +++ b/auto/lib/libgd/conf @@ -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 @@ -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 diff --git a/auto/lib/libxslt/conf b/auto/lib/libxslt/conf index 3a0f37be5..3063ac7ce 100644 --- a/auto/lib/libxslt/conf +++ b/auto/lib/libxslt/conf @@ -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 |
