From: Ard Biesheuvel <ard.biesheu...@linaro.org> Remove variable TempQWord that is declared, assigned but never referenced. This fixes a warning emitted by GCC when -Wunused-but-set-variable is in effect.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by: Liming Gao <liming....@intel.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> Cc: Jeff Fan <jeff....@intel.com> Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 199e165d466a..5ed9f226e4d1 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -459,11 +459,9 @@ ProgramFixedMtrr ( { UINT32 MsrNum; UINT32 ByteShift; - UINT64 TempQword; UINT64 OrMask; UINT64 ClearMask; - TempQword = 0; OrMask = 0; ClearMask = 0; -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel