This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: Some warnings removed


>>>>> Ulrich Drepper writes:

 > Andreas Jaeger <aj@suse.de> writes:
>> * posix/wordexp.c (do_parse_glob): Likewise.
>> * sysdeps/posix/sigblock.c (__sigblock): Removed signed warning.
>> * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
>> * elf/dl-open.c (_dl_open): Likewise.
>> * elf/dl-close.c (_dl_close): Likewise.
>> * elf/dl-load.c (_dl_map_object): Likewise.
>> * iconv/iconv_prog.c (process_fd): Likewise.
>> 
>> * locale/localeinfo.h (struct locale_data): Use __flexarr instead
>> of a zero-length array.

 > The localeinfo.h part of the patch was missing but from the comment it
:-(  I'm appending it for reference and will commit everything now.
 > seems fine, too.  OK with me.

Andreas
============================================================
Index: locale/localeinfo.h
--- locale/localeinfo.h	2000/12/31 18:03:59	1.35
+++ locale/localeinfo.h	2001/01/12 17:01:17
@@ -1,5 +1,5 @@
 /* Declarations for internal libc locale interfaces
-   Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1995, 96, 97, 98, 99,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -65,7 +65,7 @@
     const char *string;
     unsigned int word;
   }
-  values[0];	/* Items, usually pointers into `filedata'.  */
+  values __flexarr;	/* Items, usually pointers into `filedata'.  */
 };
 
 /* We know three kinds of collation sorting rules.  */

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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