[edk2-devel] [PATCH] MdeModulePkg/RegularExpressinoDxe: Fix clang error

Nhi Pham via groups.io nhi=os.amperecomputing.com at groups.io
Mon Oct 23 04:27:27 UTC 2023


This looks good to me. I also build-tested this patch.

Reviewed-by: Nhi Pham <nhi at os.amperecomputing.com>
Tested-by: Nhi Pham <nhi at os.amperecomputing.com>

On 10/3/2023 10:04 PM, Jake Garver via groups.io wrote:
> Ignore old style declaration warnings in oniguruma/src/st.c.  This was
> already ignored for MSFT, but newer versions of clang complain as well.
> 
> Signed-off-by: Jake Garver <jake at nvidia.com>
> ---
>   .../Universal/RegularExpressionDxe/RegularExpressionDxe.inf      | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf
> index 84489c2942..0092531a67 100644
> --- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf
> +++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf
> @@ -102,6 +102,7 @@
>   
>     # Oniguruma: old style declaration in st.c
>     MSFT:*_*_*_CC_FLAGS = /wd4131
> +  GCC:*_*_*_CC_FLAGS = -Wno-deprecated-non-prototype
>   
>     # Oniguruma: 'type cast' : truncation from 'OnigUChar *' to 'unsigned int'
>     MSFT:*_*_*_CC_FLAGS = /wd4305 /wd4306


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109886): https://edk2.groups.io/g/devel/message/109886
Mute This Topic: https://groups.io/mt/101735690/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list