ci/test: unused args for objc, objc++

pull/6284/head
Michael Hirsch, Ph.D 5 years ago committed by Jussi Pakkanen
parent acee448fb9
commit d1980beb6b
  1. 8
      .github/workflows/unusedargs_missingreturn.yml
  2. 2
      test cases/objc/1 simple/prog.m
  3. 2
      test cases/objc/2 nsstring/stringprog.m
  4. 2
      test cases/objc/3 objc args/prog.m
  5. 2
      test cases/objcpp/1 simple/prog.mm
  6. 2
      test cases/objcpp/2 objc++ args/prog.mm

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

@ -1,5 +1,5 @@
#import<stdio.h>
int main(int argc, char **argv) {
int main(void) {
return 0;
}

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

@ -1,6 +1,6 @@
#import<stdio.h>
int main(int argc, char **argv)
int main(void)
{
#ifdef MESON_TEST
int x = 3;

@ -3,7 +3,7 @@
class MyClass {
};
int main(int argc, char **argv) {
int main(void) {
return 0;
}

@ -4,7 +4,7 @@ class TestClass
{
};
int main(int argc, char **argv)
int main(void)
{
#ifdef MESON_OBJCPP_TEST
int x = 1;

Loading…
Cancel
Save