Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Work around variadic macros warnings.

  • Loading branch information...
commit b5e136277306b43b715ce51acbc6ae1df3fdca04 1 parent 2abda4a
@ckolivas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 util.h
View
4 util.h
@@ -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__; \
@@ -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__; \
Please sign in to comment.
Something went wrong with that request. Please try again.