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