From ec5edab64a137d560acd593be42ed320a6a48d2e Mon Sep 17 00:00:00 2001 From: k-hara Date: Fri, 19 Dec 2014 00:25:21 +0900 Subject: [PATCH] Change remaining old 'offset' deprecation to error --- src/iasm.c | 2 +- src/mtype.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iasm.c b/src/iasm.c index 5ecf32ca2115..bde9d46a4674 100644 --- a/src/iasm.c +++ b/src/iasm.c @@ -4193,7 +4193,7 @@ static OPND *asm_una_exp() // Check for offset keyword if (asmtok->ident == Id::offset) { - deprecation(asmstate.loc, "offset deprecated, use offsetof"); + error(asmstate.loc, "use offsetof instead of offset"); goto Loffset; } if (asmtok->ident == Id::offsetof) diff --git a/src/mtype.c b/src/mtype.c index 80c32f770f06..eaa3ff0e67f8 100644 --- a/src/mtype.c +++ b/src/mtype.c @@ -3547,7 +3547,7 @@ Expression *TypeVector::dotExp(Scope *sc, Expression *e, Identifier *ident, int e->type = basetype; return e; } - if (ident == Id::offsetof || ident == Id::offset || ident == Id::stringof) + if (ident == Id::offsetof || ident == Id::stringof) { // offsetof does not work on a cast expression, so use the basetype directly // stringof should not add a cast to the output