Mark the func pointer as __dead2. It looks up loader_main, which
either aborts or exits, but never returns. Tag it as a non-returning function rather than supply a bogus return(0) at the end of main. CID: 1382885 Sponsored by: Netflix
This commit is contained in:
parent
7f37401396
commit
291ce17bc8
@ -422,7 +422,7 @@ int
|
||||
main(int argc, char** argv)
|
||||
{
|
||||
void *h;
|
||||
void (*func)(struct loader_callbacks *, void *, int, int);
|
||||
void (*func)(struct loader_callbacks *, void *, int, int) __dead2;
|
||||
int opt;
|
||||
char *disk_image = NULL;
|
||||
const char *userboot_obj = "/boot/userboot.so";
|
||||
|
Loading…
Reference in New Issue
Block a user