mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Don't reference DMD-specific flags when IN_GCC (#20731)
This commit is contained in:
parent
9c9720493d
commit
8061aa84c1
1 changed files with 6 additions and 1 deletions
|
@ -387,7 +387,12 @@ extern (D) void reportSafeError(FuncDeclaration fd, bool gag, Loc loc,
|
|||
if (fd.isSafe())
|
||||
buf.writestring(" is not allowed in a `@safe` function");
|
||||
else
|
||||
buf.writestring(" is not allowed in a function with default safety with `-preview=safer`");
|
||||
{
|
||||
version (IN_GCC)
|
||||
buf.writestring(" is not allowed in a function with default safety with `-fpreview=safer`");
|
||||
else
|
||||
buf.writestring(" is not allowed in a function with default safety with `-preview=safer`");
|
||||
}
|
||||
.error(loc, "%s", buf.extractChars());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue