summaryrefslogtreecommitdiff
path: root/util/crossgcc/patches/acpica-unix-20110922_no_unused_variables.patch
blob: 1edcb7ff7203b22af53d5fca20cff975bf983d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -x '*.o' -ur acpica-unix-20110922.orig//compiler/aslcompiler.l acpica-unix-20110922/compiler/aslcompiler.l
--- acpica-unix-20110922.orig//compiler/aslcompiler.l	2011-10-28 23:24:17.333274002 +0200
+++ acpica-unix-20110922/compiler/aslcompiler.l	2011-10-28 23:24:56.669274001 +0200
@@ -550,7 +550,6 @@
     void)
 {
     ASL_FILE_NODE           *Fnode;
-    FILE                    *InputFile = NULL;
 
 
     Fnode = InputStack;
@@ -569,7 +568,6 @@
     /* Update the top-of-stack */
 
     InputStack = Fnode->Next;
-    InputFile = Fnode->File;
 
     /* Reset global line counter and filename */
 
diff -x '*.o' -ur acpica-unix-20110922.orig//os_specific/service_layers/osunixxf.c acpica-unix-20110922/os_specific/service_layers/osunixxf.c
--- acpica-unix-20110922.orig//os_specific/service_layers/osunixxf.c	2011-10-28 23:24:17.345274002 +0200
+++ acpica-unix-20110922/os_specific/service_layers/osunixxf.c	2011-10-28 23:56:13.629274002 +0200
@@ -349,7 +349,6 @@
     const char              *Fmt,
     va_list                 Args)
 {
-    INT32                   Count = 0;
     UINT8                   Flags;
 
 
@@ -362,7 +361,7 @@
         {
             /* Output file is open, send the output there */
 
-            Count = vfprintf (AcpiGbl_DebugFile, Fmt, Args);
+            vfprintf (AcpiGbl_DebugFile, Fmt, Args);
         }
         else
         {
@@ -374,7 +373,7 @@
 
     if (Flags & ACPI_DB_CONSOLE_OUTPUT)
     {
-        Count = vfprintf (AcpiGbl_OutputFile, Fmt, Args);
+        vfprintf (AcpiGbl_OutputFile, Fmt, Args);
     }
 }