Re: [PATCH] Use __VA_ARGS__ for all of error's arguments
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 7, 2013, 21:05 UTC
- Message-ID
- <7vwquj6dio.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1360267238-21896-1-git-send-email-kraai@ftbfs.org>
Matt Kraai <kraai@ftbfs.org> writes:
> -#if defined(__GNUC__) && ! defined(__clang__) > -#define error(fmt, ...) (error((fmt), ##__VA_ARGS__), -1) > -#endif > +#define error(...) (error(__VA_ARGS__), -1)
Before your change, we only define error() macro for GCC variants, but with your patch that no longer is the case. Does every compiler that compiles Git correctly today support this style of varargs macros?