diff --git a/re2/re2.h b/re2/re2.h index 68fbed1d8..7ea44e044 100644 --- a/re2/re2.h +++ b/re2/re2.h @@ -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 diff --git a/util/pcre.cc b/util/pcre.cc index f54cb28f8..27aee3dc4 100644 --- a/util/pcre.cc +++ b/util/pcre.cc @@ -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