@@ -57,7 +57,6 @@ __gshared Diagnostic[] diagnostics = [];
5757class ErrorSinkCompiler : ErrorSink
5858{
5959 nothrow :
60- extern (C++ ):
6160 override :
6261
6362 void verror (Loc loc, const (char )* format, va_list ap)
@@ -246,55 +245,6 @@ else
246245 va_end(ap);
247246 }
248247
249- /**
250- * Print a warning message, increasing the global warning count.
251- * Params:
252- * loc = location of warning
253- * format = printf-style format specification
254- * ... = printf-style variadic arguments
255- */
256- static if (__VERSION__ < 2092 )
257- extern (C++ ) void warning(Loc loc, const (char )* format, ... )
258- {
259- va_list ap;
260- va_start(ap, format);
261- vreportDiagnostic(loc, format, ap, ErrorKind.warning);
262- va_end(ap);
263- }
264- else
265- pragma (printf) extern (C++ ) void warning(Loc loc, const (char )* format, ... )
266- {
267- va_list ap;
268- va_start(ap, format);
269- vreportDiagnostic(loc, format, ap, ErrorKind.warning);
270- va_end(ap);
271- }
272-
273- /**
274- * Print additional details about a warning message.
275- * Doesn't increase the warning count or print an additional warning prefix.
276- * Params:
277- * loc = location of warning
278- * format = printf-style format specification
279- * ... = printf-style variadic arguments
280- */
281- static if (__VERSION__ < 2092 )
282- extern (C++ ) void warningSupplemental(Loc loc, const (char )* format, ... )
283- {
284- va_list ap;
285- va_start(ap, format);
286- vsupplementalDiagnostic(loc, format, ap, ErrorKind.warning);
287- va_end(ap);
288- }
289- else
290- pragma (printf) extern (C++ ) void warningSupplemental(Loc loc, const (char )* format, ... )
291- {
292- va_list ap;
293- va_start(ap, format);
294- vsupplementalDiagnostic(loc, format, ap, ErrorKind.warning);
295- va_end(ap);
296- }
297-
298248/**
299249 * Print a deprecation message, may increase the global warning or error count
300250 * depending on whether deprecations are ignored.
0 commit comments