diff options
Diffstat (limited to 'test cases/common/98 threads/threadprog.cpp')
| -rw-r--r-- | test cases/common/98 threads/threadprog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test cases/common/98 threads/threadprog.cpp b/test cases/common/98 threads/threadprog.cpp index 18fa9f546..3c69dc3a8 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 main(void) { printf("Starting thread.\n"); HANDLE th; DWORD id; @@ -28,11 +28,11 @@ int main() { #include<thread> #include<cstdio> -void main_func() { +void main_func(void) { printf("Printing from a thread.\n"); } -int main() { +int main(void) { printf("Starting thread.\n"); std::thread th(main_func); th.join(); |
