mirror of
https://github.com/acpica/acpica/
synced 2025-01-27 19:55:25 +03:00
iASL/Preprocessor: Add proper message for #warning directive.
Was previously sharing the message for #error, this was incorrect.
This commit is contained in:
parent
bd737d9f96
commit
ecfb12c90f
@ -320,7 +320,7 @@ typedef enum
|
||||
ASL_MSG_TOO_MANY_ARGUMENTS,
|
||||
ASL_MSG_UNKNOWN_DIRECTIVE,
|
||||
ASL_MSG_UNKNOWN_PRAGMA,
|
||||
|
||||
ASL_MSG_WARNING_DIRECTIVE,
|
||||
|
||||
/* These messages are used by the data table compiler only */
|
||||
|
||||
@ -505,6 +505,7 @@ char *AslMessages [] =
|
||||
/* ASL_MSG_TOO_MANY_ARGUMENTS */ "Too many macro arguments",
|
||||
/* ASL_MSG_UNKNOWN_DIRECTIVE */ "Unknown directive",
|
||||
/* ASL_MSG_UNKNOWN_PRAGMA */ "Unknown pragma",
|
||||
/* ASL_MSG_WARNING_DIRECTIVE */ "#warning",
|
||||
|
||||
/* Table compiler */
|
||||
|
||||
|
@ -848,7 +848,7 @@ PrDoDirective (
|
||||
|
||||
case PR_DIRECTIVE_WARNING:
|
||||
|
||||
PrError (ASL_WARNING, ASL_MSG_ERROR_DIRECTIVE,
|
||||
PrError (ASL_WARNING, ASL_MSG_WARNING_DIRECTIVE,
|
||||
THIS_TOKEN_OFFSET (Token));
|
||||
break;
|
||||
|
||||
@ -863,7 +863,6 @@ PrDoDirective (
|
||||
|
||||
return;
|
||||
|
||||
|
||||
SyntaxError:
|
||||
|
||||
PrError (ASL_ERROR, ASL_MSG_DIRECTIVE_SYNTAX,
|
||||
|
Loading…
x
Reference in New Issue
Block a user