Changeset: c139e4ab52dd for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/c139e4ab52dd Modified Files: gdk/gdk_time.c Branch: default Log Message:
Clang thinks it's GCC. diffs (15 lines): diff --git a/gdk/gdk_time.c b/gdk/gdk_time.c --- a/gdk/gdk_time.c +++ b/gdk/gdk_time.c @@ -846,9 +846,9 @@ do_daytime_precision_tostr(char *buf, si else if (precision < 6) { for (int i = 6; i > precision; i--) usec /= 10; -#if defined(__GNUC__) && __GNUC__ < 9 +#if defined(__GNUC__) && __GNUC__ < 9 /* the %0*d format gives an incorrect warning in gcc on at least gcc 8.3.1 */ -_Pragma("GCC diagnostic ignored \"-Wformat-truncation\"") +GCC_Pragma("GCC diagnostic ignored \"-Wformat-truncation\"") #endif return snprintf(buf, len, "%02d:%02d:%02d.%0*d", hour, min, sec, precision, usec); } else { _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org