mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 16:41:04 +08:00
prevent GCC warning/error when using -pedantic or -pedantic-errors flags
This commit is contained in:
parent
5acaffc2b3
commit
177032852d
10
date.h
10
date.h
@ -805,6 +805,12 @@ public:
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
// GCC complains about __int128 with -pedantic or -pedantic-errors
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct choose_trunc_type
|
struct choose_trunc_type
|
||||||
{
|
{
|
||||||
@ -826,6 +832,10 @@ struct choose_trunc_type
|
|||||||
>::type;
|
>::type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
CONSTCD11
|
CONSTCD11
|
||||||
inline
|
inline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user