This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch gas]: Build failure for win32 targets


Hi,

I noticed in gas an new warning about an possible uninitialized
variable, which break build.

ChangeLog

2009-07-15  Kai Tietz  <kai.tietz@onevision.com>

	* listing.c (print_source): Initialize cache by NULL.

Tested patch for i686-w64-mingw32 and x86_64-w64-mingw32.

Ok for apply?

Cheers,
Kai
-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
Index: src/gas/listing.c
===================================================================
--- src.orig/gas/listing.c	2009-07-15 21:28:21.000000000 +0200
+++ src/gas/listing.c	2009-07-15 21:32:44.038674200 +0200
@@ -983,7 +983,7 @@
 #define NUM_CACHE_LINES  3
   static cached_line cached_lines[NUM_CACHE_LINES];
   static int next_free_line = 0;
-  cached_line * cache;
+  cached_line * cache = NULL;
 
   if (current_file->linenum > list->hll_line
       && list->hll_line > 0)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]