Skip to content

Commit

Permalink
Disable warning for missing-field-initializers as well for clang.
Browse files Browse the repository at this point in the history
The same warning shows up with clang++. Tested with clang-16 and clang-17.

Change-Id: I4181f7eb20a17b83aef1d4d0c4a34d42818f53a1
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62730
Reviewed-by: Alex Chernyakhovsky <[email protected]>
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
Henner Zeller authored and junyer committed Feb 19, 2024
1 parent 477b9f9 commit 6bb550b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion re2/re2.h
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ inline RE2::Arg RE2::Octal(T* ptr) {
}

// Silence warnings about missing initializers for members of LazyRE2.
#if !defined(__clang__) && defined(__GNUC__)
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

Expand Down
2 changes: 1 addition & 1 deletion util/pcre.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/pcre.h"

// Silence warnings about the wacky formatting in the operator() functions.
#if !defined(__clang__) && defined(__GNUC__)
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#endif

Expand Down

0 comments on commit 6bb550b

Please sign in to comment.