diff options
author | Gang Chen <gang.c.chen@intel.com> | 2023-01-03 13:57:38 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-17 07:57:10 +0000 |
commit | 410ca0ff94a42ee541dd6ceab70ea974eeb7e500 (patch) | |
tree | 8be805a59a7df85c11beb643ed05081ff7adf6f8 /CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf | |
parent | 0e5717009779ec6c1e35f979426a2cd407b3e73a (diff) | |
download | edk2-410ca0ff94a42ee541dd6ceab70ea974eeb7e500.zip edk2-410ca0ff94a42ee541dd6ceab70ea974eeb7e500.tar.gz edk2-410ca0ff94a42ee541dd6ceab70ea974eeb7e500.tar.bz2 |
CryptoPkg/Library: add -Wno-unused-but-set-variable for openssl
The GCC warning fix is not in 1.1.1x. Ignore the warning type
-Wno-unused-but-set-variable with GCC compiler in the build option.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Signed-off-by: Gang Chen <gang.c.chen@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf')
-rw-r--r-- | CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf b/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf index 591c57f..0762952 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf +++ b/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf @@ -745,6 +745,8 @@ GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
+ # Revisit after switching to 3.0 branch
+ GCC:*_GCC5_*_CC_FLAGS = -Wno-unused-but-set-variable
# suppress the following warnings in openssl so we don't break the build with warnings-as-errors:
# 1295: Deprecated declaration <entity> - give arg types
|