diff options
| author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-09-05 14:41:33 -0400 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-17 13:24:42 +0200 |
| commit | 1baa1c92220d23a91337e8aa1e174c66f7fd0531 (patch) | |
| tree | e46796919bce6bbc5408bbca0b23d5bf7d3d2fc0 /test cases/common/98 threads/threadprog.cpp | |
| parent | c6f93b6bf67500c963cdaa33b0500ea1a15232b0 (diff) | |
| download | meson-1baa1c92220d23a91337e8aa1e174c66f7fd0531.tar.gz | |
use '-Werror=unused-parameter' for gcc/clang on project tests and -fimplicit-none on fortran
Fortran: check for undeclared variables by forcing implicit none everywhere
C/C++: check for unused parameters and return types
removed unused variables from test cases
ci: do missing return and unused arg check with Github Actions
Diffstat (limited to 'test cases/common/98 threads/threadprog.cpp')
| -rw-r--r-- | test cases/common/98 threads/threadprog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/98 threads/threadprog.cpp b/test cases/common/98 threads/threadprog.cpp index 6fd747f89..18fa9f546 100644 --- a/test cases/common/98 threads/threadprog.cpp +++ b/test cases/common/98 threads/threadprog.cpp @@ -14,7 +14,7 @@ DWORD WINAPI thread_func(LPVOID) { return 0; } -int main(int, char**) { +int main() { printf("Starting thread.\n"); HANDLE th; DWORD id; @@ -32,7 +32,7 @@ void main_func() { printf("Printing from a thread.\n"); } -int main(int, char**) { +int main() { printf("Starting thread.\n"); std::thread th(main_func); th.join(); |
