/* Print a parser warning, using the source file name and line number set by a previous call to SetParserPosition(). */
VOID ParserWarning(UINT32 ErrorCode, CHAR8 *OffendingText, CHAR8 *MsgFmt,...)
/* Print a parser warning, using the source file name and line number set by a previous call to SetParserPosition(). */
VOID ParserWarning(UINT32 ErrorCode, CHAR8 *OffendingText, CHAR8 *MsgFmt,...)
{
  va_list List;
  if (mPrintLimitsSet) {
    if (mMaxWarningsPlusErrors != 0) {
      if (mErrorCount + mWarningCount > mMaxWarningsPlusErrors) {
        PrintLimitExceeded ();
        return ;
      }
    }
    if (mMaxWarnings != 0) {
      if (mWarningCount > mMaxWarnings) {
        PrintLimitExceeded ();
        return ;
      }
    }
  }
  mWarningCount++;
  va_start (List, MsgFmt);
  PrintMessage ("WARNING", mSourceFileName, mSourceFileLineNum, ErrorCode, OffendingText, MsgFmt, List);
  va_end (List);
}