q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5813dbffe881e1a25ce71b318144328e3036a694

commit 5813dbffe881e1a25ce71b318144328e3036a694
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Mon Jun 8 10:43:20 2015 +0100

    eolian: silence static analysis
    
    Add some unreachable returns to fix CID 1304557.
---
 src/lib/eolian/eo_lexer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index 41d624c..b0c7390 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)
           {
              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);

-- 


Reply via email to