From d93f60098349d889a2bfdf90590b52b54d11b397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 3 Dec 2019 16:55:21 +0400 Subject: [PATCH] Fix some -Wpedantic warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes ISO C does not support ‘__FUNCTION__’ predefined identifier Signed-off-by: Marc-André Lureau Reviewed-by: Gert Wollny --- vtest/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vtest/util.h b/vtest/util.h index c73f277..69e0441 100644 --- a/vtest/util.h +++ b/vtest/util.h @@ -32,9 +32,9 @@ int __failed_call(const char* func, const char *called, int ret); int __failure(const char* func, const char *reason, int ret); #define report_failure(reason, ret) \ - __failure(__FUNCTION__, reason, ret) + __failure(__func__, reason, ret) #define report_failed_call(called, ret) \ - __failed_call(__FUNCTION__, called, ret) + __failed_call(__func__, called, ret) #endif /* VTEST_UTIL_H */