Skip to content

Commit

Permalink
Fix 'control reaches end of non-void function'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mittinatten committed Nov 15, 2023
1 parent 5eda2e0 commit 6cb2bae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/freesasa.c
Expand Up @@ -258,6 +258,9 @@ freesasa_alg_name(freesasa_algorithm alg)
return "Shrake & Rupley";
case FREESASA_LEE_RICHARDS:
return "Lee & Richards";
default:
// This should never happen
assert(0 && "Illegal algorithm");
return "Unknown algorithm";
}
assert(0 && "Illegal algorithm");
}

0 comments on commit 6cb2bae

Please sign in to comment.