mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Fix -WShadow and -Wunknownpragma
This commit is contained in:
@@ -10,8 +10,14 @@
|
|||||||
|
|
||||||
// Disable warning for shadowing variable, for every compilers. Indeed, there is
|
// Disable warning for shadowing variable, for every compilers. Indeed, there is
|
||||||
// a static Event for every letter of the alphabet:
|
// a static Event for every letter of the alphabet:
|
||||||
#pragma GCC diagnostic ignored "-Wshadow"
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic ignored "-Wshadow"
|
#pragma clang diagnostic ignored "-Wshadow"
|
||||||
|
#elif __GNUC__
|
||||||
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#pragma warning(disable : 6244)
|
||||||
|
#pragma warning(disable : 6246)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ftxui {
|
namespace ftxui {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user