From 16e93125b506e30e53f63be4af0255a3afb0210b Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Thu, 24 Mar 2016 07:28:19 +0100 Subject: [PATCH] UefiCpuPkg/MtrrLib: remove unused but set variable 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 Reviewed-by: Liming Gao Reviewed-by: Laszlo Ersek Cc: Jeff Fan Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Reviewed-by: Jeff Fan --- 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 199e165d46..5ed9f226e4 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;