diff --git a/projects/clr/opencl/tests/ocltst/env/getopt.cpp b/projects/clr/opencl/tests/ocltst/env/getopt.cpp index 9964b93a71..72ff9c8adb 100644 --- a/projects/clr/opencl/tests/ocltst/env/getopt.cpp +++ b/projects/clr/opencl/tests/ocltst/env/getopt.cpp @@ -42,7 +42,8 @@ int getopt(int argc, char *const argv[], const char *optstring) { return '?'; } optarg = argv[optind]; - optind++; } + + optind++; return opt; }