You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/03/09 16:53:31 UTC

[qpid-proton] branch main updated: PROTON-2691: Fix -Wstrict-prototypes compile warning from Clang (#389)

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/main by this push:
     new 34b4d930d PROTON-2691: Fix -Wstrict-prototypes compile warning from Clang (#389)
34b4d930d is described below

commit 34b4d930d9a4beaa7728870e215a43880e3e4d07
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Thu Mar 9 17:53:24 2023 +0100

    PROTON-2691: Fix -Wstrict-prototypes compile warning from Clang (#389)
---
 c/src/core/engine.c          | 4 ++--
 c/src/core/error.c           | 2 +-
 c/src/core/message.c         | 2 +-
 c/src/core/object/iterator.c | 2 +-
 c/src/extra/url.c            | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/c/src/core/engine.c b/c/src/core/engine.c
index aa90a4b31..70138566d 100644
--- a/c/src/core/engine.c
+++ b/c/src/core/engine.c
@@ -225,7 +225,7 @@ void pn_condition_init(pn_condition_t *condition)
   condition->info = NULL;
 }
 
-pn_condition_t *pn_condition() {
+pn_condition_t *pn_condition(void) {
   pn_condition_t *c = (pn_condition_t*)pni_mem_allocate(PN_VOID, sizeof(pn_condition_t));
   pn_condition_init(c);
   return c;
@@ -525,7 +525,7 @@ static void pn_connection_finalize(void *object)
 #define pn_connection_compare NULL
 #define pn_connection_inspect NULL
 
-pn_connection_t *pn_connection()
+pn_connection_t *pn_connection(void)
 {
   static const pn_class_t clazz = PN_CLASS(pn_connection);
   pn_connection_t *conn = (pn_connection_t *) pn_class_new(&clazz, sizeof(pn_connection_t));
diff --git a/c/src/core/error.c b/c/src/core/error.c
index 2d0d9b3fd..fa7b137c0 100644
--- a/c/src/core/error.c
+++ b/c/src/core/error.c
@@ -41,7 +41,7 @@ struct pn_error_t {
 
 PN_STRUCT_CLASSDEF(pn_error)
 
-pn_error_t *pn_error()
+pn_error_t *pn_error(void)
 {
   pn_error_t *error = (pn_error_t *) pni_mem_allocate(PN_CLASSCLASS(pn_error), sizeof(pn_error_t));
   if (error != NULL) {
diff --git a/c/src/core/message.c b/c/src/core/message.c
index 5a6849e15..dd12a4207 100644
--- a/c/src/core/message.c
+++ b/c/src/core/message.c
@@ -357,7 +357,7 @@ static pn_message_t *pni_message_new(size_t size)
   return msg;
 }
 
-pn_message_t *pn_message() {
+pn_message_t *pn_message(void) {
   return pni_message_new(sizeof(pn_message_t));
 }
 
diff --git a/c/src/core/object/iterator.c b/c/src/core/object/iterator.c
index a80ac9aba..f98a552b0 100644
--- a/c/src/core/object/iterator.c
+++ b/c/src/core/object/iterator.c
@@ -51,7 +51,7 @@ static void pn_iterator_finalize(void *object)
 #define pn_iterator_compare NULL
 #define pn_iterator_inspect NULL
 
-pn_iterator_t *pn_iterator()
+pn_iterator_t *pn_iterator(void)
 {
   static const pn_class_t clazz = PN_CLASS(pn_iterator);
   pn_iterator_t *it = (pn_iterator_t *) pn_class_new(&clazz, sizeof(pn_iterator_t));
diff --git a/c/src/extra/url.c b/c/src/extra/url.c
index 5e71b6234..383d19719 100644
--- a/c/src/extra/url.c
+++ b/c/src/extra/url.c
@@ -189,7 +189,7 @@ static void pn_url_inspect(void *obj, pn_fixed_string_t *dst)
 #define pn_url_initialize NULL
 
 
-pn_url_t *pn_url() {
+pn_url_t *pn_url(void) {
     static const pn_class_t clazz = PN_CLASS(pn_url);
     pn_url_t *url = (pn_url_t*) pn_class_new(&clazz, sizeof(pn_url_t));
     if (!url) return NULL;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org