Skip to content

Commit

Permalink
Work around variadic macros warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Mar 7, 2012
1 parent 2abda4a commit b5e1362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util.h
Expand Up @@ -45,7 +45,7 @@ static inline void fatal(const rzip_control *control, unsigned int line, const c
#ifdef fatal
# undef fatal
#endif
#define fatal(stuff...) fatal(control, __LINE__, __FILE__, __func__, stuff)
#define fatal(...) fatal(control, __LINE__, __FILE__, __func__, __VA_ARGS__)
#define fatal_return(stuff, ...) do { \
fatal stuff; \
return __VA_ARGS__; \
Expand All @@ -70,7 +70,7 @@ static inline void failure(const rzip_control *control, unsigned int line, const
#ifdef failure
# undef failure
#endif
#define failure(stuff...) failure(control, __LINE__, __FILE__, __func__, stuff)
#define failure(...) failure(control, __LINE__, __FILE__, __func__, __VA_ARGS__)
#define failure_return(stuff, ...) do { \
failure stuff; \
return __VA_ARGS__; \
Expand Down

0 comments on commit b5e1362

Please sign in to comment.