mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Work around variadic macros warnings.
This commit is contained in:
parent
2abda4acd6
commit
b5e1362773
4
util.h
4
util.h
|
|
@ -45,7 +45,7 @@ static inline void fatal(const rzip_control *control, unsigned int line, const c
|
||||||
#ifdef fatal
|
#ifdef fatal
|
||||||
# undef fatal
|
# undef fatal
|
||||||
#endif
|
#endif
|
||||||
#define fatal(stuff...) fatal(control, __LINE__, __FILE__, __func__, stuff)
|
#define fatal(...) fatal(control, __LINE__, __FILE__, __func__, __VA_ARGS__)
|
||||||
#define fatal_return(stuff, ...) do { \
|
#define fatal_return(stuff, ...) do { \
|
||||||
fatal stuff; \
|
fatal stuff; \
|
||||||
return __VA_ARGS__; \
|
return __VA_ARGS__; \
|
||||||
|
|
@ -70,7 +70,7 @@ static inline void failure(const rzip_control *control, unsigned int line, const
|
||||||
#ifdef failure
|
#ifdef failure
|
||||||
# undef failure
|
# undef failure
|
||||||
#endif
|
#endif
|
||||||
#define failure(stuff...) failure(control, __LINE__, __FILE__, __func__, stuff)
|
#define failure(...) failure(control, __LINE__, __FILE__, __func__, __VA_ARGS__)
|
||||||
#define failure_return(stuff, ...) do { \
|
#define failure_return(stuff, ...) do { \
|
||||||
failure stuff; \
|
failure stuff; \
|
||||||
return __VA_ARGS__; \
|
return __VA_ARGS__; \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue