git » libfiu » commit 2e192af

preload/posix: Fix compile warning about extra ";"

author Alberto Bertogli
2019-10-05 12:11:22 UTC
committer Alberto Bertogli
2019-10-05 12:11:22 UTC
parent 870a90ef9355ab4a9943544dfa6be4818b7be11f

preload/posix: Fix compile warning about extra ";"

In the custom posix macros we have some unnecessary ";", which, when
built with -pedantic, the compiler complains about:

modules/posix.custom.c: At top level:
modules/posix.custom.c:543:39: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
  543 |  (int, const char *restrict, va_list));
      |                                       ^

This patch fixes this warning by removing the unnecessary ";".

preload/posix/modules/posix.custom.c +5 -5

diff --git a/preload/posix/modules/posix.custom.c b/preload/posix/modules/posix.custom.c
index c4bcfd9..4f8b5fc 100644
--- a/preload/posix/modules/posix.custom.c
+++ b/preload/posix/modules/posix.custom.c
@@ -440,7 +440,7 @@ mkwrap_bottom(fclose, (stream))
 /* fprintf() -> vfprintf() */
 mkwrap_init(int, vfprintf,
 	(FILE *restrict stream, const char *restrict format, va_list ap),
-	(FILE *restrict, const char *restrict, va_list));
+	(FILE *restrict, const char *restrict, va_list))
 
 mkwrap_variadic_def_and_body_called(int, fprintf, vfprintf,
 	(FILE *restrict stream, const char *restrict format, ...),
@@ -490,7 +490,7 @@ mkwrap_variadic_bottom(fprintf, vfprintf, (stream, format, arguments), format)
 /* printf() -> vprintf() */
 mkwrap_init(int, vprintf,
 	(const char *restrict format, va_list ap),
-	(const char *restrict, va_list));
+	(const char *restrict, va_list))
 
 mkwrap_variadic_def_and_body_called(int, printf, vprintf,
 	(const char *restrict format, ...),
@@ -540,7 +540,7 @@ mkwrap_variadic_bottom(printf, vprintf, (format, arguments), format)
 /* dprintf() -> vdprintf() */
 mkwrap_init(int, vdprintf,
 	(int fildes, const char *restrict format, va_list ap),
-	(int, const char *restrict, va_list));
+	(int, const char *restrict, va_list))
 
 mkwrap_variadic_def_and_body_called(int, dprintf, vdprintf,
 	(int fildes, const char *restrict format, ...),
@@ -590,7 +590,7 @@ mkwrap_variadic_bottom(dprintf, vdprintf, (fildes, format, arguments), format)
 /* fscanf() -> vfscanf() */
 mkwrap_init(int, vfscanf,
 	(FILE *restrict stream, const char *restrict format, va_list ap),
-	(FILE *restrict, const char *restrict, va_list));
+	(FILE *restrict, const char *restrict, va_list))
 
 mkwrap_variadic_def_and_body_called(int, fscanf, vfscanf,
 	(FILE *restrict stream, const char *restrict format, ...),
@@ -634,7 +634,7 @@ mkwrap_variadic_bottom(fscanf, vfscanf, (stream, format, arguments), format)
 /* scanf() -> vscanf() */
 mkwrap_init(int, vscanf,
 	(const char *restrict format, va_list ap),
-	(const char *restrict, va_list));
+	(const char *restrict, va_list))
 
 mkwrap_variadic_def_and_body_called(int, scanf, vscanf,
 	(const char *restrict format, ...),