From 4e29db73c9bd2e60b12845e39b23ab2f3233a13d Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 1 Mar 2016 13:15:41 +0900 Subject: [PATCH] edje epp - fix gcc warning about possible unused var usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 0d2b5035c9..5fb73756d2 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() == '=')