iASL: Eliminate duplicate warnings/errors.

This change eliminates possible duplicate warnings and errors for
predefined names.
This commit is contained in:
Robert Moore 2014-01-17 09:50:48 -08:00
parent 2171e9bafb
commit 9e0ce66a12
3 changed files with 11 additions and 3 deletions

View File

@ -889,7 +889,8 @@ AslError (
/* Check if user wants to ignore this exception */
if (AslIsExceptionDisabled (Level, MessageId))
if (Gbl_AllExceptionsDisabled ||
AslIsExceptionDisabled (Level, MessageId))
{
return;
}

View File

@ -242,6 +242,7 @@ ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_UseOriginalCompilerId,
ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_VerboseTemplates, FALSE);
ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_DoTemplates, FALSE);
ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_CompileGeneric, FALSE);
ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_AllExceptionsDisabled, FALSE);
#define HEX_OUTPUT_NONE 0

View File

@ -323,10 +323,16 @@ ApCheckPredefinedReturnValue (
const ACPI_PREDEFINED_INFO *ThisName;
/* Check parent method for a match against the predefined name list */
/*
* Check parent method for a match against the predefined name list.
*
* Note: Disable compiler errors/warnings because any errors will be
* caught when analyzing the parent method. Eliminates duplicate errors.
*/
Gbl_AllExceptionsDisabled = TRUE;
Index = ApCheckForPredefinedName (MethodInfo->Op,
MethodInfo->Op->Asl.NameSeg);
Gbl_AllExceptionsDisabled = FALSE;
switch (Index)
{