From ac25bd2295b3430e54c93ed2b86431ef6bbb6c69 Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 3 Nov 2007 23:19:18 +0000 Subject: [PATCH] workaround gcc 4.[01] crash (bsm, Loris Boillet, Kano, Szaka) --- libntfs-3g/logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/logging.c b/libntfs-3g/logging.c index 6d85bcf2..c34bc2b0 100644 --- a/libntfs-3g/logging.c +++ b/libntfs-3g/logging.c @@ -58,8 +58,8 @@ static const char *col_red = "\e[01;31m"; static const char *col_redinv = "\e[01;07;31m"; static const char *col_end = "\e[0m"; -/* gcc 3.3.3 crashes with internal compiler error. 4.x seems to be ok. */ -#if __GNUC__ <= 3 +/* Some gcc 3.x, 4.[01].X crash with internal compiler error. */ +#if __GNUC__ <= 3 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 1) # define BROKEN_GCC_FORMAT_ATTRIBUTE #else # define BROKEN_GCC_FORMAT_ATTRIBUTE __attribute__((format(printf, 6, 0)))