From 12a3893bd3578142a40e6c85df187e6f1639f1be Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Mon, 26 Feb 2024 21:31:44 +0300 Subject: [PATCH] Do not emit #pragma GCC diagnostic for now --- blazingio.min.hpp | 3 --- minimize.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/blazingio.min.hpp b/blazingio.min.hpp index 7719b9b..7205830 100644 --- a/blazingio.min.hpp +++ b/blazingio.min.hpp @@ -1,5 +1,3 @@ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension" // NOLINTBEGIN // clang-format off // DO NOT REMOVE THIS MESSAGE. The mess that follows is a minified build of @@ -67,6 +65,5 @@ #define clog e$ #endif // End of blazingio -#pragma GCC diagnostic pop // NOLINTEND // clang-format on diff --git a/minimize.py b/minimize.py index be879b0..7f28ec9 100644 --- a/minimize.py +++ b/minimize.py @@ -537,8 +537,8 @@ def whitespace(s): # Add comments blazingio = f"// DO NOT REMOVE THIS MESSAGE. The mess that follows is a minified build of\n// https://github.com/purplesyringa/blazingio. Refer to the repository for\n// a human-readable version and documentation.\n// Options: {config_str or '(none)'}\n{blazingio}\n// End of blazingio" -# Disable lints and warnings -blazingio = f'#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"\n// NOLINTBEGIN\n// clang-format off\n{blazingio}\n#pragma GCC diagnostic pop\n// NOLINTEND\n// clang-format on\n' +# Disable lints +blazingio = f'// NOLINTBEGIN\n// clang-format off\n{blazingio}\n// NOLINTEND\n// clang-format on\n' open("blazingio.min.hpp", "w").write(blazingio)