Bug#303124: g++-2.95 spews out lots of warnings with glib header
files
Richard Atterer
Richard Atterer <atterer@debian.org>, 303124@bugs.debian.org
Tue, 05 Apr 2005 00:04:19 +0200
Package: libglib2.0-dev
Version: 2.6.3-1
Severity: minor
Hello,
compiling glib applications with g++-2.95 is possible, but the
compiler outputs a lot of warnings like this:
/usr/include/glib-2.0/gobject/gtype.h:431: warning: `visibility' attribute directive ignored
/usr/include/glib-2.0/gobject/gtype.h:432: warning: `visibility' attribute directive ignored
/usr/include/glib-2.0/gobject/gtype.h:433: warning: `visibility' attribute directive ignored
Apparently, this is caused by the G_GNUC_INTERNAL e.g. in gtype.h:431:
void g_value_c_init (void) G_GNUC_INTERNAL; /* sync with gvalue.c */
I used the following compiler switches: -Wall -W -Wpointer-arith -Wconversion -Woverloaded-virtual -O2
The headers should suppress these warnings if the detected compiler is
gcc 2.95.
Cheers,
Richard
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-15)
Versions of packages libglib2.0-dev depends on:
ii libc6-dev [libc-dev] 2.3.2.ds1-20 GNU C Library: Development Librari
ii libglib2.0-0 2.6.3-1 The GLib library of C routines
ii pkg-config 0.15.0-4 Manage compile and link flags for
-- no debconf information