mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Added some warnings to try and catch people doing silly things.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@718 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dd7934c7db
commit
b6d8192406
1 changed files with 9 additions and 0 deletions
|
@ -1519,6 +1519,9 @@ QCC_def_t *QCC_PR_Statement ( QCC_opcode_t *op, QCC_def_t *var_a, QCC_def_t *var
|
|||
if (statements[st].op == OP_ADDRESS)
|
||||
if (statements[st].c == var_b->ofs)
|
||||
break;
|
||||
|
||||
if (statements[st].c == var_b->ofs)
|
||||
QCC_PR_ParseWarning(0, "Temp-reuse may have broken your %s\n", pr_opcodes);
|
||||
}
|
||||
if (st < 0)
|
||||
QCC_PR_ParseError(ERR_INTERNAL, "XSTOREP_F couldn't find pointer generation");
|
||||
|
@ -6696,6 +6699,12 @@ QCC_def_t *QCC_PR_GetDef (QCC_type_t *type, char *name, QCC_def_t *scope, pbool
|
|||
QCC_PR_ParseError (ERR_ARRAYNEEDSSIZE, "First declaration of array %s with no size",name);
|
||||
}
|
||||
|
||||
if (scope)
|
||||
{
|
||||
if (QCC_PR_GetDef(type, name, NULL, false, arraysize))
|
||||
QCC_PR_ParseWarning(0, "Local \"%s\" defined with name of a global", name);
|
||||
}
|
||||
|
||||
ofs = numpr_globals;
|
||||
if (arraysize > 1)
|
||||
{ //write the array size
|
||||
|
|
Loading…
Reference in a new issue