Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine SmmGenericIpmi.c file to avoid warning treated as error (Bugzilla Bug 4522) #695

Open
tianocore-issues opened this issue Aug 11, 2023 · 2 comments

Comments

@tianocore-issues
Copy link

This issue was created automatically with bugzilla2github

Bugzilla Bug 4522

Date: 2023-08-11T05:32:22+00:00
From: Yanbo Huang <<yanbo.huang>>
To: Yanbo Huang <<yanbo.huang>>
CC: @lgao4

Last updated: 2023-08-15T00:57:50+00:00

@tianocore-issues
Copy link
Author

Comment 21817

Date: 2023-08-11 05:32:22 +0000
From: Yanbo Huang <<yanbo.huang>>

  • Industry Specification: ---
  • Release Observed: EDK II Master
  • Releases to Fix: EDK II Master
  • Target OS: ---
  • Bugzilla Assignee(s): Yanbo Huang <<yanbo.huang>>

/tmp/k/Edk2Platforms/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Smm/SmmGenericIpmi.c: In function SmmNotifyCallback:
/tmp/k/Edk2Platforms/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Smm/SmmGenericIpmi.c:178:25: error: variable Status set but not used [-Werror=unused-but-set-variable]
EFI_STATUS Status;
^~~~~~
/tmp/k/Edk2Platforms/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Smm/SmmGenericIpmi.c: In function SmmInitializeIpmiKcsPhysicalLayer:
/tmp/k/Edk2Platforms/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Smm/SmmGenericIpmi.c:338:10: error: statement will never be executed [-Werror=switch-unreachable]
if (FixedPcdGet8 (PcdKcsInterfaceSupport) == 1) {
^
cc1: all warnings being treated as errors

@tianocore-issues
Copy link
Author

Comment 21819

Date: 2023-08-15 00:57:50 +0000
From: @lgao4

yanbo.huang@intel.com takes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant