Skip to content

Commit 695ccee

Browse files
committed
fixed a warning: WormholyConstructor.m:6:63 A function declaration without a prototype is deprecated in all versions of C
1 parent 8f005da commit 695ccee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Objc/WormholyConstructor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// Library constructor to observe `UIApplicationDidFinishLaunchingNotification` immediately on app launch.
44
/// Calls `applicationDidFinishLaunching` on Wormholy class to initialize Wormholy.
55
/// This is an alternative to a +initialize in Objective-C.
6-
static void __attribute__ ((constructor)) wormholy_constructor() {
6+
static void __attribute__ ((constructor)) wormholy_constructor(void) {
77
Class class = NSClassFromString(@"Wormholy.Wormholy");
88
SEL selector = NSSelectorFromString(@"applicationDidFinishLaunching");
99

0 commit comments

Comments
 (0)