Fix nullability warning in BGMXPCHelper. Also add Xcode 8.3 to .travis.yml.

Fixes #107.
This commit is contained in:
Kyle Neideck 2017-04-05 22:15:54 +10:00
parent 78e2813af1
commit 6a26afe47a
No known key found for this signature in database
GPG key ID: CAA8D9B8E39EC18C
3 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,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

View file

@ -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 file

@ -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