Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Wreturn-type issues. #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions checkpolicy/module_compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ role_datum_t *declare_role(unsigned char isattr)
return dest_role; /* role already declared for this block */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -363,7 +363,7 @@ type_datum_t *declare_type(unsigned char primary, unsigned char isattr)
return typdatum;
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -499,7 +499,7 @@ user_datum_t *declare_user(void)
return dest_user; /* user already declared for this block */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -804,7 +804,7 @@ int require_class(int pass)
break;
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}

Expand Down Expand Up @@ -917,7 +917,7 @@ static int require_role_or_attribute(int pass, unsigned char isattr)
return 0; /* role already required */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -980,7 +980,7 @@ static int require_type_or_attribute(int pass, unsigned char isattr)
return 0; /* type already required */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -1041,7 +1041,7 @@ int require_user(int pass)
return 0; /* user already required */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -1092,7 +1092,7 @@ static int require_bool_tunable(int pass, int is_tunable)
return 0; /* boolean already required */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -1165,7 +1165,7 @@ int require_sens(int pass)
return 0; /* sensitivity already required */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down Expand Up @@ -1218,7 +1218,7 @@ int require_cat(int pass)
return 0; /* category already required */
}
default:{
assert(0); /* should never get here */
abort(); /* should never get here */
}
}
}
Expand Down