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

Package:
libc6-dev
Source:
glibc
Description:
GNU C Library: Development Libraries and Header Files
Submitter:
Bill Allombert
Date:
2010-02-20 22:48:03 UTC
Severity:
normal
#570674#5
Date:
2010-02-20 16:37:15 UTC
From:
To:
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,