[exim-cvs] Silence some compiler warnings. Bug 3076

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] Silence some compiler warnings. Bug 3076
Gitweb: https://git.exim.org/exim.git/commitdiff/d4ff6d2a25234f7558baa99a54ca138c3f004b06
Commit:     d4ff6d2a25234f7558baa99a54ca138c3f004b06
Parent:     d945e180cbe2b26392fb21f7ae4dd2ccc603a81b
Author:     Andrew Aitchison <exim@???>
AuthorDate: Fri Mar 8 11:52:10 2024 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Mar 8 11:55:16 2024 +0000


    Silence some compiler warnings.  Bug 3076
---
 src/src/routers/dnslookup.c | 2 +-
 src/src/tls-gnu.c           | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/src/src/routers/dnslookup.c b/src/src/routers/dnslookup.c
index 33382671f..80b12cba2 100644
--- a/src/src/routers/dnslookup.c
+++ b/src/src/routers/dnslookup.c
@@ -472,7 +472,7 @@ return rf_queue_add(addr, addr_local, addr_remote, rblock, pw)?
}

 #endif    /*!MACRO_PREDEF*/
-#endif    /*ROUTER_DNSLOOKUP
+#endif    /*ROUTER_DNSLOOKUP*/
 /* End of routers/dnslookup.c */
 /* vi: aw ai sw=2
 */
diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index 56ea93935..3e8ec6d84 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -1185,6 +1185,8 @@ tls_server_servercerts_cb(gnutls_session_t session, unsigned int htype,
 # ifdef notdef_crashes
                 /*XXX crashes */
 return gnutls_ext_raw_parse(NULL, tls_server_servercerts_ext, msg, 0);
+# else
+return GNUTLS_E_SUCCESS;
 # endif
 }
 #endif /*SUPPORT_GNUTLS_EXT_RAW_PARSE*/
@@ -1233,7 +1235,7 @@ switch (htype)
     return tls_server_ticket_cb(sess, htype, when, incoming, msg);
 # endif
   default:
-    return 0;
+    return GNUTLS_E_SUCCESS;
   }
 }
 #endif


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/