From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D9F2B42EF64 for ; Fri, 3 Jul 2020 17:47:25 +0300 (MSK) Received: by mail-lj1-f196.google.com with SMTP id s9so37240233ljm.11 for ; Fri, 03 Jul 2020 07:47:25 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:14 +0300 Message-Id: <20200703144526.522358-11-gorcunov@gmail.com> In-Reply-To: <20200703144526.522358-1-gorcunov@gmail.com> References: <20200703144526.522358-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 10/22] diag: use void for empty args List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Alexander Turenko Part-of #4718 Signed-off-by: Cyrill Gorcunov --- 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