Remove warnings from vendor files. This takes some files off the vendor

branch but they have indicated they will not fix these warnings.
This commit is contained in:
njl 2004-04-14 18:12:29 +00:00
parent ca1b52e9f6
commit 7cac239792
4 changed files with 11 additions and 11 deletions

View File

@ -340,7 +340,7 @@ AcpiDmMatchKeyword (
}
else
{
AcpiOsPrintf ("%s", (char *) AcpiGbl_MatchOps[(ACPI_SIZE) Op->Common.Value.Integer]);
AcpiOsPrintf ("%s", (char *) (uintptr_t)AcpiGbl_MatchOps[(ACPI_SIZE) Op->Common.Value.Integer]);
}
}

View File

@ -233,7 +233,7 @@ AcpiGetSleepTypeData (
/*
* Evaluate the namespace object containing the values for this state
*/
Status = AcpiNsEvaluateByName ((char *) AcpiGbl_SleepStateNames[SleepState],
Status = AcpiNsEvaluateByName ((char *) (uintptr_t) AcpiGbl_SleepStateNames[SleepState],
NULL, &ObjDesc);
if (ACPI_FAILURE (Status))
{

View File

@ -171,7 +171,7 @@ AcpiUtOsiImplementation (
for (i = 0; i < ACPI_NUM_OSI_STRINGS; i++)
{
if (!ACPI_STRCMP (StringDesc->String.Pointer,
(char *) AcpiGbl_ValidOsiStrings[i]))
(char *) (uintptr_t) AcpiGbl_ValidOsiStrings[i]))
{
/* This string is supported */
@ -759,7 +759,7 @@ AcpiUtExecute_Sxds (
{
Highest[i] = 0xFF;
Status = AcpiUtEvaluateObject (DeviceNode,
(char *) AcpiGbl_HighestDstateNames[i],
(char *) (uintptr_t) AcpiGbl_HighestDstateNames[i],
ACPI_BTYPE_INTEGER, &ObjDesc);
if (ACPI_FAILURE (Status))
{
@ -767,7 +767,7 @@ AcpiUtExecute_Sxds (
{
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"%s on Device %4.4s, %s\n",
(char *) AcpiGbl_HighestDstateNames[i],
(char *) (uintptr_t)AcpiGbl_HighestDstateNames[i],
AcpiUtGetNodeName (DeviceNode),
AcpiFormatException (Status)));

View File

@ -494,7 +494,7 @@ AcpiUtGetRegionName (
return ("InvalidSpaceId");
}
return ((char *) AcpiGbl_RegionTypes[SpaceId]);
return ((char *) (uintptr_t) AcpiGbl_RegionTypes[SpaceId]);
}
@ -532,7 +532,7 @@ AcpiUtGetEventName (
return ("InvalidEventID");
}
return ((char *) AcpiGbl_EventTypes[EventId]);
return ((char *) (uintptr_t) AcpiGbl_EventTypes[EventId]);
}
@ -602,10 +602,10 @@ AcpiUtGetTypeName (
if (Type > ACPI_TYPE_INVALID)
{
return ((char *) AcpiGbl_BadType);
return ((char *) (uintptr_t) AcpiGbl_BadType);
}
return ((char *) AcpiGbl_NsTypeNames[Type]);
return ((char *) (uintptr_t) AcpiGbl_NsTypeNames[Type]);
}
@ -722,10 +722,10 @@ AcpiUtGetDescriptorName (
if (ACPI_GET_DESCRIPTOR_TYPE (Object) > ACPI_DESC_TYPE_MAX)
{
return ((char *) AcpiGbl_BadType);
return ((char *) (uintptr_t) AcpiGbl_BadType);
}
return ((char *) AcpiGbl_DescTypeNames[ACPI_GET_DESCRIPTOR_TYPE (Object)]);
return ((char *) (uintptr_t) AcpiGbl_DescTypeNames[ACPI_GET_DESCRIPTOR_TYPE (Object)]);
}