From: jsg Date: Sat, 30 Mar 2024 01:13:56 +0000 (+0000) Subject: use void in function decl with no args; avoids non-ANSI smatch warnings X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d0000c5a85d72a4f6ade1bb1a1f81555798f8516;p=openbsd use void in function decl with no args; avoids non-ANSI smatch warnings --- diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h index cc270f8a465..0872b12b423 100644 --- a/sys/arch/sparc64/include/ctlreg.h +++ b/sys/arch/sparc64/include/ctlreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ctlreg.h,v 1.30 2020/07/31 11:19:12 kettenis Exp $ */ +/* $OpenBSD: ctlreg.h,v 1.31 2024/03/30 01:13:56 jsg Exp $ */ /* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */ /* @@ -530,7 +530,7 @@ do { \ #define GEN_RD(name) \ static inline u_int64_t sparc_rd_ ## name(void); \ static inline u_int64_t \ -sparc_rd_ ## name() \ +sparc_rd_ ## name(void) \ { \ u_int64_t r; \ __asm volatile("rd %%" #name ", %0" : \ @@ -542,7 +542,7 @@ sparc_rd_ ## name() \ #define GEN_RDPR(name) \ static inline u_int64_t sparc_rdpr_ ## name(void); \ static inline u_int64_t \ -sparc_rdpr_ ## name() \ +sparc_rdpr_ ## name(void) \ { \ u_int64_t r; \ __asm volatile("rdpr %%" #name ", %0" : \