summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-08 10:43:20 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-08 10:43:20 +0100
commit5813dbffe881e1a25ce71b318144328e3036a694 (patch)
tree9f55dd2b659ac6affacd276e85207fcf62acd7ae
parent24b786462a1b10744eaeb5f807fbe01fb56d4c13 (diff)
eolian: silence static analysis
Add some unreachable returns to fix CID 1304557.
-rw-r--r--src/lib/eolian/eo_lexer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index 41d624ca0c..b0c73904dc 100644
--- a/src/lib/eolian/eo_lexer.c
+++ b/src/lib/eolian/eo_lexer.c
@@ -272,6 +272,7 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column)
272 { 272 {
273 free(doc); 273 free(doc);
274 eo_lexer_lex_error(ls, "unfinished documentation", -1); 274 eo_lexer_lex_error(ls, "unfinished documentation", -1);
275 return; /* unreachable, for static analysis */
275 } 276 }
276 if (is_newline(ls->current)) 277 if (is_newline(ls->current))
277 { 278 {
@@ -319,6 +320,7 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column)
319 free(doc); 320 free(doc);
320 eina_strbuf_free(rbuf); 321 eina_strbuf_free(rbuf);
321 eo_lexer_lex_error(ls, "unfinished documentation", -1); 322 eo_lexer_lex_error(ls, "unfinished documentation", -1);
323 return; /* unreachable, for static analysis */
322 } 324 }
323 325
324 eina_strbuf_reset(ls->buff); 326 eina_strbuf_reset(ls->buff);