mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 09:54:42 +03:00
iASL: Eliminate duplicate warnings/errors.
This change eliminates possible duplicate warnings and errors for predefined names.
This commit is contained in:
parent
2171e9bafb
commit
9e0ce66a12
@ -889,7 +889,8 @@ AslError (
|
||||
|
||||
/* Check if user wants to ignore this exception */
|
||||
|
||||
if (AslIsExceptionDisabled (Level, MessageId))
|
||||
if (Gbl_AllExceptionsDisabled ||
|
||||
AslIsExceptionDisabled (Level, MessageId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user