winebuild: remove dead code (clang)

André Hentschel nerv at dawncrow.de
Sun Jul 3 06:33:33 CDT 2011


the stored values are never read
---
 tools/winebuild/parser.c |    2 +-
 tools/winebuild/res32.c  |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c
index 705601e..6a1eb85 100644
--- a/tools/winebuild/parser.c
+++ b/tools/winebuild/parser.c
@@ -114,7 +114,7 @@ static int get_next_line(void)
 
 static const char * GetToken( int allow_eol )
 {
-    char *p = ParseNext;
+    char *p;
     char *token = TokenBuffer;
 
     for (;;)
diff --git a/tools/winebuild/res32.c b/tools/winebuild/res32.c
index e3f46ee..729aa2f 100644
--- a/tools/winebuild/res32.c
+++ b/tools/winebuild/res32.c
@@ -188,7 +188,6 @@ static void dump_res_data( const struct resource *res )
         size -= 4;
     }
     output( "0x%08x\n", get_dword() );
-    size -= 4;
     assert( input_buffer_pos == input_buffer_size );
 }
 
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list