Skip to content

Commit 9754f79

Browse files
committed
Fix warnings
1 parent d3355df commit 9754f79

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

runtime/flang/global.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* \brief Global definitions and declarations for Fortran I/O library
2020
*/
2121

22+
#include "stdio.h"
2223
#include "fioMacros.h"
2324
#include "stdioInterf.h" /* stubbed version of stdio.h */
2425
#include "cnfg.h" /* declarations for configuration items */
@@ -51,11 +52,6 @@ typedef unsigned short WCHAR;
5152

5253
#define VOID void
5354

54-
WIN_MSVCRT_IMP char *WIN_CDECL getenv(const char *);
55-
WIN_MSVCRT_IMP long WIN_CDECL strtol(const char *, char **, int);
56-
WIN_MSVCRT_IMP char *WIN_CDECL strerror(int);
57-
WIN_MSVCRT_IMP char *WIN_CDECL strstr(const char *, const char *);
58-
5955
typedef __INT_T INT; /* native integer at least 32 bits */
6056
typedef unsigned int UINT; /* unsigned 32 bit native integer */
6157
#define ISDIGIT(c) ((c) >= '0' && (c) <= '9')

runtime/flang/rename3f.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "io3f.h"
2424
#include "ent3f.h"
2525

26-
extern int rename();
2726
extern char *__fstr2cstr();
2827
extern void __cstr_free();
2928

runtime/flangrti/round.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
*/
1717

1818
#include "mthdecls.h"
19-
20-
extern float roundf(float);
19+
#include "math.h"
2120

2221
float
2322
__mth_i_round(float x)

runtime/include/stdioInterf.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ int __io_feof(FILE *);
114114
int __io_ferror(FILE *);
115115
size_t __io_fwrite(const void *, size_t, size_t, FILE *);
116116
int __io_timezone(void *);
117-
int fclose(FILE *);
118-
int fflush(FILE *);
119-
int __io_fputc(int, FILE *);
120-
FILE *tmpfile(void);
121-
char *tmpnam(char *);
122117
char *__io_tempnam(const char *, const char *);
123118

124119
extern void *__aligned_malloc(size_t, size_t); /* pgmemalign.c */

0 commit comments

Comments
 (0)