Skip to content

Commit

Permalink
move -Wno-c99-designator and -Wno-c++20-designator to source file
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Aug 6, 2024
1 parent 4ecc4ef commit ea8c52b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/babylon/any.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "babylon/any.h"

#pragma clang diagnostic push
#if __clang__
#pragma clang diagnostic ignored "-Wc++20-designator"
#endif // __clang__

BABYLON_NAMESPACE_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions src/babylon/any.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <memory> // std::unique_ptr

#pragma clang diagnostic push
#if __clang__
#pragma clang diagnostic ignored "-Wc++20-designator"
#endif // __clang__

BABYLON_NAMESPACE_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions src/babylon/any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include <cassert> // ::assert

#pragma clang diagnostic push
#if __clang__
#pragma clang diagnostic ignored "-Wc++20-designator"
#endif // __clang__

BABYLON_NAMESPACE_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions src/babylon/logging/async_file_appender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <sys/stat.h>

#pragma clang diagnostic push
#if __clang__
#pragma clang diagnostic ignored "-Wc++20-designator"
#endif // __clang__

BABYLON_NAMESPACE_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions src/babylon/logging/log_entry.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "babylon/logging/log_entry.h"

#pragma clang diagnostic push
#if __clang__
#pragma clang diagnostic ignored "-Wc++20-designator"
#endif // __clang__

BABYLON_NAMESPACE_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions src/babylon/logging/log_severity.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ class LogSeverity {
int8_t _value {DEBUG};

#pragma clang diagnostic push
#if __clang__
#pragma clang diagnostic ignored "-Wc99-designator"
#endif // __clang__
static constexpr StringView names[NUM] = {
[DEBUG] = "DEBUG",
[INFO] = "INFO",
Expand Down

0 comments on commit ea8c52b

Please sign in to comment.