mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Disable GCC sign-compare warning in the header file
This commit is contained in:
parent
f4d8884af1
commit
9954aa064b
3
format.h
3
format.h
@ -105,6 +105,9 @@ inline uint32_t clzll(uint64_t x) {
|
|||||||
// Disable the warning about declaration shadowing because it affects too
|
// Disable the warning about declaration shadowing because it affects too
|
||||||
// many valid cases.
|
// many valid cases.
|
||||||
# pragma GCC diagnostic ignored "-Wshadow"
|
# 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
|
# endif
|
||||||
# if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__
|
# if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__
|
||||||
# define FMT_HAS_GXX_CXX11 1
|
# define FMT_HAS_GXX_CXX11 1
|
||||||
|
Loading…
Reference in New Issue
Block a user