[flang][Runtime] Use proper prototypes in Fortran_main. NFCI

This is compiled as C code, so it's a good idea to be explicit about the
prototype. Clang complains about this when -Wstrict-prototypes is used.

Differential Revision: https://reviews.llvm.org/D125672
This commit is contained in:
Diana Picus 2022-05-16 07:58:09 +00:00
parent d9d15af787
commit 6bcafce103
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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[]) {