eolian: silence static analysis

Add some unreachable returns to fix CID 1304557.
This commit is contained in:
Daniel Kolesa 2015-06-08 10:43:20 +01:00
parent 24b786462a
commit 5813dbffe8
1 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,7 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column)
{
free(doc);
eo_lexer_lex_error(ls, "unfinished documentation", -1);
return; /* unreachable, for static analysis */
}
if (is_newline(ls->current))
{
@ -319,6 +320,7 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column)
free(doc);
eina_strbuf_free(rbuf);
eo_lexer_lex_error(ls, "unfinished documentation", -1);
return; /* unreachable, for static analysis */
}
eina_strbuf_reset(ls->buff);