Permalink
Browse files

Fix nullability warning in BGMXPCHelper. Also add Xcode 8.3 to .travi…

…s.yml.

Fixes #107.
  • Loading branch information...
1 parent 78e2813 commit 6a26afe47a5d6e213764fb3bf6c2fef459ea4595 @kyleneideck committed Apr 5, 2017
Showing with 8 additions and 2 deletions.
  1. +4 −0 .travis.yml
  2. +2 −2 BGMApp/BGMXPCHelper/main.m
  3. +2 −0 build_and_install.sh
View
@@ -2,6 +2,10 @@ language: objective-c
matrix:
include:
- os: osx
+ osx_image: xcode8.3
+ xcode_sdk: macosx10.12
+ sudo: required
+ - os: osx
osx_image: xcode8.2
xcode_sdk: macosx10.12
sudo: required
@@ -58,14 +58,14 @@
#pragma clang assume_nonnull begin
-int main(int argc, const char *argv[]) {
+int main(int argc, const char* __nullable argv[]) {
#pragma unused (argc, argv)
DebugMsg("BGMXPCHelper::main: Service starting up");
// Set up the one NSXPCListener for this service. It will handle all incoming connections. This checks our service in with
// the bootstrap service.
- NSXPCListener *listener = [[NSXPCListener alloc] initWithMachServiceName:kBGMXPCHelperMachServiceName];
+ NSXPCListener* listener = [[NSXPCListener alloc] initWithMachServiceName:kBGMXPCHelperMachServiceName];
BGMXPCListenerDelegate* delegate = [BGMXPCListenerDelegate new];
listener.delegate = delegate;
View
@@ -61,6 +61,8 @@ error_handler() {
"is alpha software so you never know." >&2
echo >&2
echo "To try building and installing without this build script, see MANUAL-INSTALL.md." >&2
+ echo >&2
+ echo "You can also try ignoring compiler warnings with: $0 -w" >&2
# Finish logging debug info if the script fails early.
if ! [[ -z ${LOG_DEBUG_INFO_TASK_PID:-} ]]; then

0 comments on commit 6a26afe

Please sign in to comment.