"==" warning is now only given in first pass

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@30 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2014-05-07 09:40:50 +00:00
parent f9e55a0d13
commit af1521f258

View File

@ -8,6 +8,8 @@
// 31 Jul 2009 Changed ASR again, just to be on the safe side.
// 14 Jan 2014 Changed associativity of "power-of" operator,
// so a^b^c now means a^(b^c).
// 7 May 2014 C-style "==" operators are now recognized (but
// give a warning).
#include <stdlib.h>
#include <math.h> // only for fp support
#include "platform.h"
@ -765,7 +767,7 @@ static void expect_dyadic_operator(void)
operator = &ops_equals;
// if it's "==", accept but warn
if (GetByte() == '=') {
Throw_warning("C-style \"==\" comparison detected");
Throw_first_pass_warning("C-style \"==\" comparison detected");
goto get_byte_and_push_dyadic;
}
goto push_dyadic;