summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-12-03 16:55:21 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2019-12-03 16:55:21 +0400
commit4eed780cf7b52124999f1fe070ec54dd225584d7 (patch)
tree222ed5e2548287ab6eba0c08a5616d4e05efa0dc
parent28557fef557269a07400a141dc9e09e0180a3f1f (diff)
Fix some -Wpedantic warning
Fixes ISO C does not support ‘__FUNCTION__’ predefined identifier Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--vtest/util.h4
1 files 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 */