From 9954aa064bcd86d2c133c4ca45aedd63866fa75a Mon Sep 17 00:00:00 2001 From: Ingo van Lil Date: Tue, 3 Nov 2015 11:14:48 +0100 Subject: [PATCH] Disable GCC sign-compare warning in the header file --- format.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/format.h b/format.h index 861c7ce7..bde8878c 100644 --- a/format.h +++ b/format.h @@ -105,6 +105,9 @@ inline uint32_t clzll(uint64_t x) { // Disable the warning about declaration shadowing because it affects too // many valid cases. # pragma GCC diagnostic ignored "-Wshadow" +// Disable the warning about implicit conversions that may change the sign of +// an integer; silencing it otherwise would require many explicit casts. +# pragma GCC diagnostic ignored "-Wsign-conversion" # endif # if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__ # define FMT_HAS_GXX_CXX11 1