fs/vfs/fs_open.c: Fix error in nx_vopen() function. 'va_start' is used in function with fixed args. 'va_start'/'va_end' should not be used in nx_vopen function, because it has fixed arguments.

This commit is contained in:
Xinhe Zhou 2019-12-14 07:38:36 -06:00 committed by Gregory Nutt
parent 10b8c01abf
commit 25b788a9ed
2 changed files with 1 additions and 3 deletions

View File

@ -120,9 +120,7 @@ int nx_vopen(FAR const char *path, int oflags, va_list ap)
if ((oflags & (O_WRONLY | O_CREAT)) != 0)
{
va_start(ap, oflags);
mode = va_arg(ap, mode_t);
va_end(ap);
}
#endif

View File

@ -38,7 +38,7 @@ export SHELL=cmd
TOPDIR := ${shell echo %CD%}
-include $(TOPDIR)\.config
-include $(TOPDIR)/.version
-include $(TOPDIR)\tools\Config.mk
include $(TOPDIR)\tools\Config.mk
-include $(TOPDIR)\Make.defs
# In case .version file does not exist