aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/unusedargs_missingreturn.yml8
-rw-r--r--test cases/objc/1 simple/prog.m2
-rw-r--r--test cases/objc/2 nsstring/stringprog.m2
-rw-r--r--test cases/objc/3 objc args/prog.m2
-rw-r--r--test cases/objcpp/1 simple/prog.mm2
-rw-r--r--test cases/objcpp/2 objc++ args/prog.mm2
6 files changed, 11 insertions, 7 deletions
diff --git a/.github/workflows/unusedargs_missingreturn.yml b/.github/workflows/unusedargs_missingreturn.yml
index 6c373b9..c190af0 100644
--- a/.github/workflows/unusedargs_missingreturn.yml
+++ b/.github/workflows/unusedargs_missingreturn.yml
@@ -13,6 +13,8 @@ on:
- "test cases/common/**"
- "test cases/fortran/**"
- "test cases/linuxlike/**"
+ - "test cases/objc/**"
+ - "test cases/objcpp/**"
- "test caes/windows/**"
pull_request:
@@ -22,6 +24,8 @@ on:
- "test cases/common/**"
- "test cases/fortran/**"
- "test cases/linuxlike/**"
+ - "test cases/objc/**"
+ - "test cases/objcpp/**"
- "test caes/windows/**"
jobs:
@@ -36,8 +40,8 @@ jobs:
- name: Install Compilers
run: |
sudo apt update -yq
- sudo apt install -yq --no-install-recommends g++ gfortran ninja-build
- - run: python run_project_tests.py --only cmake common fortran platform-linux
+ sudo apt install -yq --no-install-recommends g++ gfortran ninja-build gobjc gobjc++
+ - run: python run_project_tests.py --only cmake common fortran platform-linux "objective c" "objective c++"
env:
CFLAGS: "-Werror=unused-parameter -Werror=return-type -Werror=strict-prototypes"
CPPFLAGS: "-Werror=unused-parameter -Werror=return-type"
diff --git a/test cases/objc/1 simple/prog.m b/test cases/objc/1 simple/prog.m
index f2e2315..87457bf 100644
--- a/test cases/objc/1 simple/prog.m
+++ b/test cases/objc/1 simple/prog.m
@@ -1,5 +1,5 @@
#import<stdio.h>
-int main(int argc, char **argv) {
+int main(void) {
return 0;
} \ No newline at end of file
diff --git a/test cases/objc/2 nsstring/stringprog.m b/test cases/objc/2 nsstring/stringprog.m
index f1a2532..faef4dd 100644
--- a/test cases/objc/2 nsstring/stringprog.m
+++ b/test cases/objc/2 nsstring/stringprog.m
@@ -1,6 +1,6 @@
#import<Foundation/NSString.h>
-int main(int argc, char **argv) {
+int main(void) {
int result;
NSString *str = [NSString new];
result = [str length];
diff --git a/test cases/objc/3 objc args/prog.m b/test cases/objc/3 objc args/prog.m
index bfd686a..003df98 100644
--- a/test cases/objc/3 objc args/prog.m
+++ b/test cases/objc/3 objc args/prog.m
@@ -1,6 +1,6 @@
#import<stdio.h>
-int main(int argc, char **argv)
+int main(void)
{
#ifdef MESON_TEST
int x = 3;
diff --git a/test cases/objcpp/1 simple/prog.mm b/test cases/objcpp/1 simple/prog.mm
index 927e810..d3bbf6c 100644
--- a/test cases/objcpp/1 simple/prog.mm
+++ b/test cases/objcpp/1 simple/prog.mm
@@ -3,7 +3,7 @@
class MyClass {
};
-int main(int argc, char **argv) {
+int main(void) {
return 0;
}
diff --git a/test cases/objcpp/2 objc++ args/prog.mm b/test cases/objcpp/2 objc++ args/prog.mm
index 3decaf2..2b437ce 100644
--- a/test cases/objcpp/2 objc++ args/prog.mm
+++ b/test cases/objcpp/2 objc++ args/prog.mm
@@ -4,7 +4,7 @@ class TestClass
{
};
-int main(int argc, char **argv)
+int main(void)
{
#ifdef MESON_OBJCPP_TEST
int x = 1;