diff options
author | Gary Lin <glin@suse.com> | 2016-07-29 11:25:26 +0800 |
---|---|---|
committer | david wei <david.wei@intel.com> | 2016-08-10 10:38:29 +0800 |
commit | ecf2d9b26a6a574c02de92cb2993fe4428d8ee80 (patch) | |
tree | b905f4ec177bcfbeab68285fb6e9adbbc323c8de /Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c | |
parent | 7a3aa9b803497a4577f0bdca542cc78703a9c2f3 (diff) | |
download | edk2-platforms-ecf2d9b26a6a574c02de92cb2993fe4428d8ee80.tar.xz |
Vlv2TbltDevicePkg/PlatformInitPei: Suppress the gcc error message
Fix the following error from gcc:
Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c: In function 'GetWakeupEventAndSaveToHob':
Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c:147:11: error: variable 'WakeEventData' set but not used [-Werror=unused-but-set-variable]
Although the function name is "GetWakeupEventAndSaveToHob",
WakeEventData was never really used or passed to any other function.
Given the fact that the function is served as an example, it'd better to
keep the code related to WakeEventData. Just add a debug statement to
suppress the error message.
Cc: David Wei <david.wei@intel.com>
Cc: "Wu, Hao A" <hao.a.wu@intel.com>
Cc: "Lu, ShifeiX A" <shifeix.a.lu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: David Wei <david.wei@intel.com>
Diffstat (limited to 'Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c')
-rw-r--r-- | Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c b/Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c index 27a6b078fc..5d3fde6ba3 100644 --- a/Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c +++ b/Vlv2TbltDevicePkg/PlatformInitPei/PlatformEarlyInit.c @@ -157,6 +157,7 @@ GetWakeupEventAndSaveToHob ( }
DEBUG ((EFI_D_ERROR, "ACPI Wake Status Register: %04x\n", Pm1Sts));
+ DEBUG ((EFI_D_ERROR, "ACPI Wake Event Data: %02x\n", WakeEventData));
return EFI_SUCCESS;
}
|