[Tarantool-patches] [PATCH 10/22] diag: use void for empty args

Cyrill Gorcunov gorcunov at gmail.com
Fri Jul 3 17:45:14 MSK 2020


Part-of #4718

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/lib/core/diag.c | 2 +-
 src/lib/core/diag.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/core/diag.c b/src/lib/core/diag.c
index bcb0d1f1c..f872be6a7 100644
--- a/src/lib/core/diag.c
+++ b/src/lib/core/diag.c
@@ -129,7 +129,7 @@ error_create(struct error *e,
 }
 
 struct diag *
-diag_get()
+diag_get(void)
 {
 	return &fiber()->diag;
 }
diff --git a/src/lib/core/diag.h b/src/lib/core/diag.h
index f68415f6f..6bf0b139a 100644
--- a/src/lib/core/diag.h
+++ b/src/lib/core/diag.h
@@ -295,7 +295,7 @@ diag_last_error(struct diag *diag)
 }
 
 struct diag *
-diag_get();
+diag_get(void);
 
 NORETURN static inline void
 diag_raise(void)
-- 
2.26.2



More information about the Tarantool-patches mailing list