Skip to content

Commit

Permalink
Do not emit #pragma GCC diagnostic for now
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Feb 26, 2024
1 parent 9fd2898 commit 12a3893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions blazingio.min.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -67,6 +65,5 @@
#define clog e$
#endif
// End of blazingio
#pragma GCC diagnostic pop
// NOLINTEND
// clang-format on
4 changes: 2 additions & 2 deletions minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 12a3893

Please sign in to comment.