]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Universal / RegularExpressionDxe / RegularExpressionDxe.inf
index 7490a03c5c116ac1331712016f0cab4d82fb7c87..883d5f112765643c4042dfbbe34aaaad12897e2b 100644 (file)
@@ -4,13 +4,7 @@
 #  Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
 #  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 #\r
-#  This program and the accompanying materials are licensed and made available\r
-#  under the terms and conditions of the BSD License that accompanies this\r
-#  distribution.  The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php.\r
-#\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
-#  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ##\r
 \r
 [Defines]\r
   gEfiRegularExpressionProtocolGuid       ## PRODUCES\r
 \r
 [BuildOptions]\r
+  # Enable STDARG for variable arguments\r
+  *_*_*_CC_FLAGS = -DHAVE_STDARG_H\r
+\r
   # Override MSFT build option to remove /Oi and /GL\r
   MSFT:*_*_*_CC_FLAGS          = /GL-\r
   INTEL:*_*_*_CC_FLAGS         = /Oi-\r
 \r
   # Oniguruma: potentially uninitialized local variable used\r
-  MSFT:*_*_*_CC_FLAGS = /wd4701\r
+  MSFT:*_*_*_CC_FLAGS = /wd4701 /wd4703\r
 \r
   # Oniguruma: intrinsic function not declared\r
   MSFT:*_*_*_CC_FLAGS = /wd4164\r
   # Oniguruma: signed and unsigned mismatch/cast\r
   MSFT:*_*_*_CC_FLAGS = /wd4018 /wd4245 /wd4389\r
 \r
-  # Oniguruma: error: variable 'fp' set but not used\r
-  GCC:*_*_*_CC_FLAGS = -Wno-error=unused-but-set-variable\r
+  # Oniguruma: tag_end in parse_callout_of_name\r
+  GCC:*_*_*_CC_FLAGS = -Wno-error=maybe-uninitialized\r
+\r
+  # Not add -Wno-error=maybe-uninitialized option for XCODE\r
+  # XCODE doesn't know this option\r
+  XCODE:*_*_*_CC_FLAGS =\r