Skip to content

Commit a1544f7

Browse files
authored
remove warningxxxx() from errors.d (#23740)
1 parent b759d71 commit a1544f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

compiler/src/dmd/errors.d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ else
408408
* format = printf-style format specification
409409
* ... = printf-style variadic arguments
410410
*/
411+
version (LDC) // LDC needs updating to add eSink.warning instead of warning
412+
{
411413
static if (__VERSION__ < 2092)
412414
extern (C++) void warning(Loc loc, const(char)* format, ...)
413415
{
@@ -424,6 +426,7 @@ else
424426
global.errorSink.vwarning(loc, format, ap);
425427
va_end(ap);
426428
}
429+
}
427430

428431
/**
429432
* Print additional details about a warning message.

0 commit comments

Comments
 (0)