diff options
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/VirtioFsDxe/SimpleFsOpen.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OvmfPkg/VirtioFsDxe/SimpleFsOpen.c b/OvmfPkg/VirtioFsDxe/SimpleFsOpen.c index d73d23f..9e46e8a 100644 --- a/OvmfPkg/VirtioFsDxe/SimpleFsOpen.c +++ b/OvmfPkg/VirtioFsDxe/SimpleFsOpen.c @@ -333,6 +333,12 @@ VirtioFsSimpleFileOpen ( }
//
+ // Set CreateDirectoryIfCreating to suppress incorrect compiler/analyzer
+ // warnings.
+ //
+ CreateDirectoryIfCreating = FALSE;
+
+ //
// Validate the Attributes requested for the case when the file ends up being
// created, provided creation is permitted.
//
@@ -427,6 +433,11 @@ VirtioFsSimpleFileOpen ( }
//
+ // Set NewNodeIsDirectory to suppress incorrect compiler/analyzer warnings.
+ //
+ NewNodeIsDirectory = FALSE;
+
+ //
// Try to open LastComponent directly under DirNodeId, as an existent regular
// file or directory.
//
|