From aa768c71910ab27ed8fd228e2425be24eb2b1ff0 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 3 Jan 2018 10:21:54 +0000 Subject: [PATCH] On the trunk: Fixed gcc warnings in latest mod_md version. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1819943 13f79535-47bb-0310-9956-ffa450edef68 --- modules/md/md.h | 2 +- modules/md/md_crypt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/md/md.h b/modules/md/md.h index a35aaac0a4..1aa19adaf6 100644 --- a/modules/md/md.h +++ b/modules/md/md.h @@ -280,7 +280,7 @@ struct md_creds_t { * cascaded apr_status_t checks. */ #define MD_CHK_VARS const char *md_chk_ #define MD_LAST_CHK md_chk_ -#define MD_CHK_STEP(c, status, s) (md_chk_ = s, status == (rv = (c))) +#define MD_CHK_STEP(c, status, s) (md_chk_ = s, (void)md_chk_, status == (rv = (c))) #define MD_CHK(c, status) MD_CHK_STEP(c, status, #c) #define MD_IS_ERR(c, err) (md_chk_ = #c, APR_STATUS_IS_##err((rv = (c)))) #define MD_CHK_SUCCESS(c) MD_CHK(c, APR_SUCCESS) diff --git a/modules/md/md_crypt.c b/modules/md/md_crypt.c index d1f8bd05ec..c35fef518e 100644 --- a/modules/md/md_crypt.c +++ b/modules/md/md_crypt.c @@ -1107,7 +1107,7 @@ static apr_status_t sk_add_alt_names(STACK_OF(X509_EXTENSION) *exts, #define MD_OID_MUST_STAPLE_SNAME "tlsfeature" #define MD_OID_MUST_STAPLE_LNAME "TLS Feature" -static int get_must_staple_nid() +static int get_must_staple_nid(void) { /* Funny API, the OID for must staple might be configured or * might be not. In the second case, we need to add it. But adding -- 2.40.0