mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Update hint for deprecation
This commit is contained in:
@@ -317,7 +317,7 @@ void print_deprecation_at(SourceSpan loc, const char *message, ...)
|
||||
if (!compiler.build.lsp_output && !deprecation_hint)
|
||||
{
|
||||
deprecation_hint = true;
|
||||
eprintf("HINT: You may use --silence-deprecation to silence deprecation warnings.\n\n");
|
||||
eprintf("HINT: You may use --warn-deprecation=no to silence deprecation warnings.\n\n");
|
||||
}
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
@@ -561,7 +561,7 @@ fn bool test_file(Path file_path, TestOutput* output, usz index)
|
||||
|
||||
if (settings.no_deprecation)
|
||||
{
|
||||
cmdline.push("--silence-deprecation");
|
||||
cmdline.push("--warn-deprecation=no");
|
||||
}
|
||||
|
||||
cmdline.push(settings.safe ? "--safe=yes" : "--safe=no");
|
||||
|
||||
Reference in New Issue
Block a user