Add error for #no_capture being reserved for future use

This commit is contained in:
gingerBill
2024-07-14 13:20:12 +01:00
parent 8650180ccc
commit 0a530b5ce8

View File

@@ -2070,7 +2070,7 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para
// ignore
} else {
if (is_type_internally_pointer_like(type)) {
// okay
error(name, "'#no_capture' is currently reserved for future use");
} else {
ERROR_BLOCK();
error(name, "'#no_capture' can only be applied to pointer-like types");