raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4e29db73c9bd2e60b12845e39b23ab2f3233a13d

commit 4e29db73c9bd2e60b12845e39b23ab2f3233a13d
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Mar 1 13:15:41 2016 +0900

    edje epp - fix gcc warning about possible unused var usage
    
    gcc now is complaining about out ancient cpp code possibly using
    newlines as undefined. this should keep this warning quiet - there
    isnt a real performance issue here.
    
    bin/edje/epp/cpplib.c: In function ‘cpp_get_token’:
    bin/edje/epp/cpplib.c:4602:15: warning: ‘newlines’ may be used
    uninitialized in this function [-Wmaybe-uninitialized]
           else if (newlines > 0)
    
    @fix
---
 src/bin/edje/epp/cpplib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c
index 0d2b503..5fb7375 100644
--- a/src/bin/edje/epp/cpplib.c
+++ b/src/bin/edje/epp/cpplib.c
@@ -4558,10 +4558,10 @@ cpp_get_token(cpp_reader * pfile)
      }
    else
      {
+       long                newlines = 0;
+       struct parse_marker start_mark;
        switch (c)
          {
-            long                newlines;
-            struct parse_marker start_mark;
 
          case '/':
             if (PEEKC() == '=')

-- 


Reply via email to