diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2019-05-01 11:23:23 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2019-05-01 11:30:14 (GMT) |
commit | cab5471a7ba0f45273f293104f5d00d1af8284ac (patch) | |
tree | 5b8fa202d3af100d77882d655f6183ba3c1da6a2 /Tests | |
parent | ea026fb2198ebd47353270461059183bbff867bd (diff) | |
download | CMake-cab5471a7ba0f45273f293104f5d00d1af8284ac.zip CMake-cab5471a7ba0f45273f293104f5d00d1af8284ac.tar.gz CMake-cab5471a7ba0f45273f293104f5d00d1af8284ac.tar.bz2 |
SwiftMix: Get rid of pointer types mismatch warning
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/SwiftMix/CMain.c | 6 | ||||
-rw-r--r-- | Tests/SwiftMix/ObjCMain.m | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/SwiftMix/CMain.c b/Tests/SwiftMix/CMain.c index 8877da4..519058e 100644 --- a/Tests/SwiftMix/CMain.c +++ b/Tests/SwiftMix/CMain.c @@ -1,5 +1,5 @@ -extern int ObjCMain(int argc, char const* const argv[]); -int main(int argc, char* argv[]) +extern int ObjCMain(void); +int main(void) { - return ObjCMain(argc, argv); + return ObjCMain(); } diff --git a/Tests/SwiftMix/ObjCMain.m b/Tests/SwiftMix/ObjCMain.m index 20f0bf1..afc92438 100644 --- a/Tests/SwiftMix/ObjCMain.m +++ b/Tests/SwiftMix/ObjCMain.m @@ -1,4 +1,4 @@ #import "SwiftMix-Swift.h" -int ObjCMain(int argc, char const* const argv[]) { +int ObjCMain(void) { return [SwiftMainClass SwiftMain]; } |