aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2018-04-15 17:16:33 -0700
committerGravatar GitHub <noreply@github.com>2018-04-15 17:16:33 -0700
commit7ae48c7d2e9e4f81dbae111dfbaaca5dab0ae6b8 (patch)
tree1c06374e3b1752dba0a02db76cd13a753289594b
parent4de2d80e4371e50419823961789424d40561f75a (diff)
Disable asl deprecation warnings (#1100)
-rw-r--r--.travis.yml4
-rw-r--r--Firebase/Core/FIRLogger.m3
2 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index d68fafc..7dcd62a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,9 +34,7 @@ jobs:
- ./scripts/if_changed.sh bundle exec pod install --project-directory=Functions/Example
script:
- ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
-
- # TODO fix os_log deprecation warning in FIRLogger to remove --allow-warnings
- - ./scripts/if_changed.sh bundle exec pod lib lint FirebaseCore.podspec --allow-warnings
+ - ./scripts/if_changed.sh bundle exec pod lib lint FirebaseCore.podspec
# TODO - Uncomment subsequent lines once FirebaseCore source repo is in public Specs repo
# - bundle exec pod lib lint FirebaseAuth.podspec
diff --git a/Firebase/Core/FIRLogger.m b/Firebase/Core/FIRLogger.m
index 15c0013..faa0727 100644
--- a/Firebase/Core/FIRLogger.m
+++ b/Firebase/Core/FIRLogger.m
@@ -101,6 +101,8 @@ void FIRLoggerInitializeASL() {
aslOptions = ASL_OPT_STDERR;
}
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations" // asl is deprecated
// Initialize the ASL client handle.
sFIRLoggerClient = asl_open(NULL, kFIRLoggerASLClientFacilityName, aslOptions);
@@ -237,6 +239,7 @@ void FIRLogBasic(FIRLoggerLevel level,
asl_log(sFIRLoggerClient, NULL, level, "%s", logMsg.UTF8String);
});
}
+#pragma clang diagnostic pop
/**
* Generates the logging functions using macros.