Merge pull request #25092 from grpc/revert-24637-spm-beta-test

Revert "Propagate warning disables into code."
reviewable/pr25078/r4
yulin liang 4 years ago committed by GitHub
commit 0d7e17ff80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Package.swift
  2. 3
      src/core/lib/security/credentials/jwt/json_token.cc
  3. 3
      src/core/lib/security/credentials/jwt/jwt_verifier.cc
  4. 3
      src/core/tsi/ssl/session_cache/ssl_session.h
  5. 3
      src/core/tsi/ssl/session_cache/ssl_session_cache.h
  6. 3
      src/core/tsi/ssl_transport_security.cc
  7. 3
      src/core/tsi/ssl_transport_security.h

@ -88,6 +88,7 @@ let package = Package(
.headerSearchPath("src/core/ext/upb-generated/"), .headerSearchPath("src/core/ext/upb-generated/"),
.headerSearchPath("src/core/ext/upbdefs-generated/"), .headerSearchPath("src/core/ext/upbdefs-generated/"),
.define("GRPC_ARES", to: "0"), .define("GRPC_ARES", to: "0"),
.unsafeFlags(["-Wno-module-import-in-extern-c"]),
] ]
), ),
.target( .target(
@ -116,6 +117,7 @@ let package = Package(
.headerSearchPath("include/"), .headerSearchPath("include/"),
.headerSearchPath("third_party/upb/"), .headerSearchPath("third_party/upb/"),
.headerSearchPath("src/core/ext/upb-generated"), .headerSearchPath("src/core/ext/upb-generated"),
.unsafeFlags(["-Wno-module-import-in-extern-c"]),
] ]
), ),
], ],

@ -33,14 +33,11 @@
#include "src/core/lib/security/util/json_util.h" #include "src/core/lib/security/util/json_util.h"
#include "src/core/lib/slice/b64.h" #include "src/core/lib/slice/b64.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmodule-import-in-extern-c"
extern "C" { extern "C" {
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/pem.h> #include <openssl/pem.h>
} }
#pragma clang diagnostic pop
using grpc_core::Json; using grpc_core::Json;

@ -28,14 +28,11 @@
#include <grpc/support/string_util.h> #include <grpc/support/string_util.h>
#include <grpc/support/sync.h> #include <grpc/support/sync.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmodule-import-in-extern-c"
extern "C" { extern "C" {
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/pem.h> #include <openssl/pem.h>
#include <openssl/rsa.h> #include <openssl/rsa.h>
} }
#pragma clang diagnostic pop
#include "src/core/lib/gpr/string.h" #include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/manual_constructor.h" #include "src/core/lib/gprpp/manual_constructor.h"

@ -23,12 +23,9 @@
#include <grpc/slice.h> #include <grpc/slice.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmodule-import-in-extern-c"
extern "C" { extern "C" {
#include <openssl/ssl.h> #include <openssl/ssl.h>
} }
#pragma clang diagnostic pop
#include "src/core/lib/gprpp/ref_counted.h" #include "src/core/lib/gprpp/ref_counted.h"

@ -24,12 +24,9 @@
#include <grpc/slice.h> #include <grpc/slice.h>
#include <grpc/support/sync.h> #include <grpc/support/sync.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmodule-import-in-extern-c"
extern "C" { extern "C" {
#include <openssl/ssl.h> #include <openssl/ssl.h>
} }
#pragma clang diagnostic pop
#include "src/core/lib/avl/avl.h" #include "src/core/lib/avl/avl.h"
#include "src/core/lib/gprpp/memory.h" #include "src/core/lib/gprpp/memory.h"

@ -45,8 +45,6 @@
#include "absl/strings/match.h" #include "absl/strings/match.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmodule-import-in-extern-c"
extern "C" { extern "C" {
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/crypto.h> /* For OPENSSL_free */ #include <openssl/crypto.h> /* For OPENSSL_free */
@ -57,7 +55,6 @@ extern "C" {
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
} }
#pragma clang diagnostic pop
#include "src/core/lib/gpr/useful.h" #include "src/core/lib/gpr/useful.h"
#include "src/core/tsi/ssl/session_cache/ssl_session_cache.h" #include "src/core/tsi/ssl/session_cache/ssl_session_cache.h"

@ -25,12 +25,9 @@
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
#include "src/core/tsi/transport_security_interface.h" #include "src/core/tsi/transport_security_interface.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmodule-import-in-extern-c"
extern "C" { extern "C" {
#include <openssl/x509.h> #include <openssl/x509.h>
} }
#pragma clang diagnostic pop
/* Value for the TSI_CERTIFICATE_TYPE_PEER_PROPERTY property for X509 certs. */ /* Value for the TSI_CERTIFICATE_TYPE_PEER_PROPERTY property for X509 certs. */
#define TSI_X509_CERTIFICATE_TYPE "X509" #define TSI_X509_CERTIFICATE_TYPE "X509"

Loading…
Cancel
Save