Skip to content

Commit 0e52b5c

Browse files
committed
[CHERIoT] Enable -Wcheri-compartment-return-void by default
1 parent 905c7f6 commit 0e52b5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

+2-4
Original file line numberDiff line numberDiff line change
@@ -2352,13 +2352,11 @@ def note_var_fixit_add_initialization : Note<
23522352
"initialize the variable %0 to silence this warning">;
23532353
def warn_cheri_compartment_void_return_type : Warning <
23542354
"void return on a cross-compartment call makes it impossible for callers to detect failure">,
2355-
InGroup<CHERICompartmentReturnVoid>,
2356-
DefaultIgnore;
2355+
InGroup<CHERICompartmentReturnVoid>;
23572356
def note_cheri_compartment_void_return_type : Note<"replace void return type with int">;
23582357
def warn_cheri_compartment_return_void_or_falloff : Warning <
23592358
"cross-compartement calls that always succeed should return 0 instead">,
2360-
InGroup<CHERICompartmentReturnVoid>,
2361-
DefaultIgnore;
2359+
InGroup<CHERICompartmentReturnVoid>;
23622360
def note_uninit_fixit_remove_cond : Note<
23632361
"remove the %select{'%1' if its condition|condition if it}0 "
23642362
"is always %select{false|true}2">;

0 commit comments

Comments
 (0)