mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-10 06:34:22 +00:00
Fix nullability warning in BGMXPCHelper. Also add Xcode 8.3 to .travis.yml.
Fixes #107.
This commit is contained in:
parent
78e2813af1
commit
6a26afe47a
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue