You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function sched0022_to_fn() does not return a value and the compiler complains
[249/267] Building C object .../src/tests/scheduler.c.obj
.../src/tests/scheduler.c:1653:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
I wonder, is there just a return sel4test_get_result(); missing?
The text was updated successfully, but these errors were encountered:
The function doesn't seem to perform any test asserts or similar, just performing some actions. So the correct thing to return is probably 0, but I'm not entirely sure what the convention is. @kent-mcleod or @yyshen, any input?
The function doesn't seem to perform any test asserts or similar, just performing some actions. So the correct thing to return is probably 0, but I'm not entirely sure what the convention is. @kent-mcleod or @yyshen, any input?
I think the test is fine. If you look at the calling function, test_changing_affinity. It checks the MRs set by the function as the results. A return 0 to avoid the warning should be enough, since the results are in MRs.
The function
sched0022_to_fn()
does not return a value and the compiler complainsI wonder, is there just a
return sel4test_get_result();
missing?The text was updated successfully, but these errors were encountered: