[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570674: libc6-dev: gcc-2.95: bits/pthreadtypes.h: unnamed struct/union warning



Package: libc6-dev
Version: 2.10.2-6
Severity: minor
Tags: patch

Hello GNU Libc Maintainers,

When using gcc 2.95, gcc report a warning:

%gcc-2.95 -Wno-main foo.c -c
In file included from /usr/include/sys/types.h:270,
                 from /usr/include/stdlib.h:320,
                 from foo.c:1:
/usr/include/bits/pthreadtypes.h:99: warning: unnamed struct/union that defines
no instances

  I know gcc-2.95 is totally outdated, but it is useful for regression testing
of old version of software that were only tested with it, this warning cause
lots of noise, and there is no way to disable it in gcc 2.95.

  Fixing this warning is trivial. Please see the attached patch.
This is the only instance I found where gcc-2.95 report a warning from the
headers file.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 
--- /sid/usr/include/bits/pthreadtypes.h	2010-01-09 20:56:32.000000000 +0100
+++ /usr/include/bits/pthreadtypes.h	2010-02-20 15:01:27.000000000 +0100
@@ -92,7 +92,7 @@
 # define __PTHREAD_MUTEX_HAVE_PREV	1
 #else
     unsigned int __nusers;
-    __extension__ union
+    __extension__ union pthread_mutex_have_prev_u
     {
       int __spins;
       __pthread_slist_t __list;

Reply to: