projects
/
librseq.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540263e
)
Fix: gcc extension compiler warning
author
Gary Gee
<therealthingy95@gmail.com>
Fri, 14 Apr 2023 08:21:24 +0000
(10:21 +0200)
committer
Mathieu Desnoyers
<mathieu.desnoyers@efficios.com>
Mon, 17 Apr 2023 15:52:43 +0000
(11:52 -0400)
Use __VA_ARGS__ rather than GNU args... in macros for improved compiler
compatibility.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ie17e73019b1afae721a2270b0b43197c8dca8b88
include/rseq/rseq.h
patch
|
blob
|
blame
|
history
diff --git
a/include/rseq/rseq.h
b/include/rseq/rseq.h
index 08fb5d5efa38251acc18d9fffcc75297a192ffdb..a41414f3e82219b4f12ae0a6d388cdc1d0ee6517 100644
(file)
--- a/
include/rseq/rseq.h
+++ b/
include/rseq/rseq.h
@@
-90,13
+90,13
@@
static inline struct rseq_abi *rseq_get_abi(void)
#define __rseq_str_1(x) #x
#define __rseq_str(x) __rseq_str_1(x)
-#define rseq_log(fmt,
args...)
\
+#define rseq_log(fmt,
...)
\
fprintf(stderr, fmt "(in %s() at " __FILE__ ":" __rseq_str(__LINE__)"\n", \
- ##
args
, __func__)
+ ##
__VA_ARGS__
, __func__)
-#define rseq_bug(fmt,
args...)
\
+#define rseq_bug(fmt,
...)
\
do { \
- rseq_log(fmt, ##
args);
\
+ rseq_log(fmt, ##
__VA_ARGS__);
\
abort(); \
} while (0)
This page took
0.024298 seconds
and
4
git commands to generate.