public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [patch] ShellPkg/UefiShellAcpiViewCommandLib: Fix VS tool chain build failure
@ 2019-01-28  3:28 Dandan Bi
  2019-01-28 15:21 ` Carsey, Jaben
  0 siblings, 1 reply; 2+ messages in thread
From: Dandan Bi @ 2019-01-28  3:28 UTC (permalink / raw)
  To: edk2-devel; +Cc: Krzysztof Koch, Jaben Carsey, Ray Ni

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1491

This patch is to update the data type of variable "Offset"
from UINT8 to UINT32 to fix following build issue.

...\Parsers\Pptt\PpttParser.c(193): error C2220:
warning treated as error - no 'object' file generated
...\Parsers\Pptt\PpttParser.c(193): warning C4244: '=':
conversion from 'UINT32' to 'UINT8', possible loss of data

Cc: Krzysztof Koch <krzysztof.koch@arm.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
---
 .../UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
index d97ddf8e92..bc56fe9ea1 100644
--- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
+++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c
@@ -176,11 +176,11 @@ VOID
 DumpProcessorHierarchyNodeStructure (
   IN UINT8* Ptr,
   IN UINT8  Length
   )
 {
-  UINT8  Offset;
+  UINT32 Offset;
   UINT8* PrivateResourcePtr;
   UINT32 Index;
   CHAR16 Buffer[OUTPUT_FIELD_COLUMN_WIDTH];
 
   Offset = ParseAcpi (
-- 
2.18.0.windows.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] ShellPkg/UefiShellAcpiViewCommandLib: Fix VS tool chain build failure
  2019-01-28  3:28 [patch] ShellPkg/UefiShellAcpiViewCommandLib: Fix VS tool chain build failure Dandan Bi
@ 2019-01-28 15:21 ` Carsey, Jaben
  0 siblings, 0 replies; 2+ messages in thread
From: Carsey, Jaben @ 2019-01-28 15:21 UTC (permalink / raw)
  To: Bi, Dandan, edk2-devel@lists.01.org

Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

> -----Original Message-----
> From: Bi, Dandan
> Sent: Sunday, January 27, 2019 7:29 PM
> To: edk2-devel@lists.01.org
> Cc: Krzysztof Koch <krzysztof.koch@arm.com>; Carsey, Jaben
> <jaben.carsey@intel.com>; Ni, Ray <ray.ni@intel.com>
> Subject: [patch] ShellPkg/UefiShellAcpiViewCommandLib: Fix VS tool chain
> build failure
> Importance: High
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1491
> 
> This patch is to update the data type of variable "Offset"
> from UINT8 to UINT32 to fix following build issue.
> 
> ...\Parsers\Pptt\PpttParser.c(193): error C2220:
> warning treated as error - no 'object' file generated
> ...\Parsers\Pptt\PpttParser.c(193): warning C4244: '=':
> conversion from 'UINT32' to 'UINT8', possible loss of data
> 
> Cc: Krzysztof Koch <krzysztof.koch@arm.com>
> Cc: Jaben Carsey <jaben.carsey@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Dandan Bi <dandan.bi@intel.com>
> ---
>  .../UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c       | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git
> a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.
> c
> b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.
> c
> index d97ddf8e92..bc56fe9ea1 100644
> ---
> a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.
> c
> +++
> b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.
> c
> @@ -176,11 +176,11 @@ VOID
>  DumpProcessorHierarchyNodeStructure (
>    IN UINT8* Ptr,
>    IN UINT8  Length
>    )
>  {
> -  UINT8  Offset;
> +  UINT32 Offset;
>    UINT8* PrivateResourcePtr;
>    UINT32 Index;
>    CHAR16 Buffer[OUTPUT_FIELD_COLUMN_WIDTH];
> 
>    Offset = ParseAcpi (
> --
> 2.18.0.windows.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-28 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-28  3:28 [patch] ShellPkg/UefiShellAcpiViewCommandLib: Fix VS tool chain build failure Dandan Bi
2019-01-28 15:21 ` Carsey, Jaben

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox