diff --git a/gen/functions.cpp b/gen/functions.cpp index 3b149881..a6c84a29 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -513,6 +513,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) gIR->dtors.push_back(fdecl); } } +#if DMDV2 // shared static ctor else if (fdecl->isSharedStaticCtorDeclaration()) { if (mustDefineSymbol(fdecl)) { @@ -525,7 +526,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) gIR->sharedDtors.push_back(fdecl); } } - +#endif // we never reference parameters of function prototypes std::string str; if (!declareOnly)