Skip to content

Commit

Permalink
Only use #ifdefs around macro suppression pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
lucpelletier authored and odygrd committed May 15, 2022
1 parent 7d49420 commit c1172a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quill/include/quill/detail/ThreadContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ class ThreadContext
#ifdef __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-private-field"
#endif
char _pad0[detail::CACHELINE_SIZE - sizeof(std::atomic<size_t>)] = "\0";
#ifdef __clang__
#pragma GCC diagnostic pop
#endif
#endif
Expand Down

0 comments on commit c1172a0

Please sign in to comment.