We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1355e3 commit f7ba4a6Copy full SHA for f7ba4a6
components/libc/compilers/armlibc/stubs.c
@@ -9,6 +9,8 @@
9
* 2013-11-24 aozima fixed _sys_read()/_sys_write() issues.
10
* 2014-08-03 bernard If using msh, use system() implementation
11
* in msh.
12
+ * 2020-08-05 Meco Man fixed _sys_flen() compiling-warning when
13
+ * RT_USING_DFS is not defined
14
*/
15
16
#include <string.h>
@@ -265,7 +267,9 @@ RT_WEAK void _sys_exit(int return_code)
265
267
266
268
long _sys_flen(FILEHANDLE fh)
269
{
270
+#ifdef RT_USING_DFS
271
struct stat stat;
272
+#endif
273
274
if (fh < STDERR)
275
return -1;
0 commit comments