Index: flang/include/flang/Runtime/main.h =================================================================== --- flang/include/flang/Runtime/main.h +++ flang/include/flang/Runtime/main.h @@ -14,7 +14,7 @@ FORTRAN_EXTERN_C_BEGIN void RTNAME(ProgramStart)(int, const char *[], const char *[]); -void RTNAME(ByteswapOption)(); // -byteswapio +void RTNAME(ByteswapOption)(void); // -byteswapio FORTRAN_EXTERN_C_END #endif // FORTRAN_RUNTIME_MAIN_H_ Index: flang/runtime/FortranMain/Fortran_main.c =================================================================== --- flang/runtime/FortranMain/Fortran_main.c +++ flang/runtime/FortranMain/Fortran_main.c @@ -10,7 +10,7 @@ #include "flang/Runtime/stop.h" /* main entry into PROGRAM */ -void _QQmain(); +void _QQmain(void); /* C main stub */ int main(int argc, const char *argv[], const char *envp[]) {