Skip to content

Commit 6d3fd7b

Browse files
committed
[CHERIoT] Enable -Wcheri-compartment-return-void by default
1 parent 10b5b96 commit 6d3fd7b

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
@@ -2340,13 +2340,11 @@ def note_var_fixit_add_initialization : Note<
23402340
"initialize the variable %0 to silence this warning">;
23412341
def warn_cheri_compartment_void_return_type : Warning <
23422342
"void return on a cross-compartment call makes it impossible for callers to detect failure">,
2343-
InGroup<CHERICompartmentReturnVoid>,
2344-
DefaultIgnore;
2343+
InGroup<CHERICompartmentReturnVoid>;
23452344
def note_cheri_compartment_void_return_type : Note<"replace void return type with int">;
23462345
def warn_cheri_compartment_return_void_or_falloff : Warning <
23472346
"cross-compartement calls that always succeed should return 0 instead">,
2348-
InGroup<CHERICompartmentReturnVoid>,
2349-
DefaultIgnore;
2347+
InGroup<CHERICompartmentReturnVoid>;
23502348
def note_uninit_fixit_remove_cond : Note<
23512349
"remove the %select{'%1' if its condition|condition if it}0 "
23522350
"is always %select{false|true}2">;

0 commit comments

Comments
 (0)