Skip to content

Commit 46d16f1

Browse files
authored
Fix -Wreturn-type warning in xenctrlext_stubs.c (#6859)
Using `CAMLnoreturn` does not seem to work; so returning `unit`.
2 parents 61bec37 + 4db0de7 commit 46d16f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/libs/xenctrl-ext/xenctrlext_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,10 @@ CAMLprim value stub_xenctrlext_domain_claim_pages(value xch_val, value domid_val
694694
raise_unix_errno_msg(the_errno,
695695
"Error when trying to claim memory pages");
696696
}
697-
CAMLreturn(Val_unit);
698697
#else
699698
raise_unix_errno_msg(ENOSYS, "xc_domain_claim_pages_node");
700699
#endif
700+
CAMLreturn(Val_unit);
701701
}
702702

703703
#ifdef XEN_DOMCTL_NUMA_OP_GET_NODE_PAGES

0 commit comments

Comments
 (0)