mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-17 16:31:02 +00:00
[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:
parent
d9d15af787
commit
6bcafce103
@ -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_
|
||||
|
@ -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[]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user