From 34769f12fdc506a44503b680f280f9f8d12d0bba Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sat, 4 Aug 2018 12:36:48 +0200 Subject: [PATCH 1/2] Add missing maybes field to VarDeclaration --- src/dmd/declaration.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dmd/declaration.h b/src/dmd/declaration.h index c8ba91d285b7..abe921041362 100644 --- a/src/dmd/declaration.h +++ b/src/dmd/declaration.h @@ -265,6 +265,8 @@ class VarDeclaration : public Declaration Expression *edtor; // if !=NULL, does the destruction of the variable IntRange *range; // if !NULL, the variable is known to be within the range + VarDeclarations *maybes; // STCmaybescope variables that are assigned to this STCmaybescope variable + Dsymbol *syntaxCopy(Dsymbol *); void setFieldOffset(AggregateDeclaration *ad, unsigned *poffset, bool isunion); const char *kind() const; From 3285929aef3dc6d78c4986c31b641ad2fad8cc31 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sat, 4 Aug 2018 12:57:28 +0200 Subject: [PATCH 2/2] Add missing gaggedWarnings fields to Global --- src/dmd/globals.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/dmd/globals.h b/src/dmd/globals.h index 1aab720cdd62..2f1d86c44056 100644 --- a/src/dmd/globals.h +++ b/src/dmd/globals.h @@ -230,10 +230,11 @@ struct Global Compiler compiler; Param params; - unsigned errors; // number of errors reported so far - unsigned warnings; // number of warnings reported so far - unsigned gag; // !=0 means gag reporting of errors & warnings - unsigned gaggedErrors; // number of errors reported while gagged + unsigned errors; // number of errors reported so far + unsigned warnings; // number of warnings reported so far + unsigned gag; // !=0 means gag reporting of errors & warnings + unsigned gaggedErrors; // number of errors reported while gagged + unsigned gaggedWarnings; // number of warnings reported while gagged void* console; // opaque pointer to console for controlling text attributes