tools: Remove the use of K&R functions

Clang-15 (as seen in the FreeBSD 14 tests) complains:

  xg_main.c:1248 error: a function declaration without a
  prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
  xg_init()
         ^
          void

The error message is a bit confusing but appears to new as part of
-Wdeprecated-non-prototype which is part of supporting C2x which formally
removes K&R syntax.

Either way, fix the identified function.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
master commit: e2312e41f0
master date: 2023-02-17 11:01:54 +0000
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2023-07-18 10:25:20 +02:00
1 parent 2b12f64f87
commit f5b0de706b
1 file changed
+1 -1
+1 -1
View File
@@ -121,7 +121,7 @@ xgprt(const char *fn, const char *fmt, ...)
* -1 failure, errno set.
*/
int
xg_init()
xg_init(void)
{
int flags, saved_errno;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.