Skip to content

Commit fc422db

Browse files
SimonNSiegeLord
authored andcommitted
Mark asm nothrow @nogc to fix deprecation
Windows DMD 2.080 encourages to mark asm statements in nothrow @nogc functions also with nothrow @nogc. This fixes a deprecation warning. There was no compiler error. Linux doesn't need this asm and thus Linux builds were always warning-free.
1 parent 20616c4 commit fc422db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allegro5/internal/da5.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ char[] ColorWrapper(in char[] prefix, in char[] func, in char[] arg_decls, in ch
88
auto ret = ` ~ prefix ~ func ~ `(` ~ arg_names ~ `);
99
version(ALLEGRO_SUB)
1010
{
11-
asm
11+
asm nothrow @nogc
1212
{
1313
sub ESP, 4;
1414
}

0 commit comments

Comments
 (0)