[flang-commits] [PATCH] D125672: [flang][Runtime] Use proper prototypes in Fortran_main. NFCI

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed May 18 01:04:34 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6bcafce103a4: [flang][Runtime] Use proper prototypes in Fortran_main. NFCI (authored by rovka).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125672/new/

https://reviews.llvm.org/D125672

Files:
  flang/include/flang/Runtime/main.h
  flang/runtime/FortranMain/Fortran_main.c


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125672.430266.patch
Type: text/x-patch
Size: 865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220518/9e9d90b7/attachment-0001.bin>


More information about the flang-commits mailing list