[Bug 554278] Re: /usr/include/glib-2.0/glib/gthread.h:348: warning: cast discards qualifiers from pointer target type

Bug Watch Updater 554278 at bugs.launchpad.net
Sun May 29 00:04:13 UTC 2011


** Changed in: glib
       Status: Confirmed => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/554278

Title:
  /usr/include/glib-2.0/glib/gthread.h:348: warning: cast discards
  qualifiers from pointer target type

Status in The "G" Library - GLib:
  Expired
Status in “glib2.0” package in Ubuntu:
  Fix Released

Bug description:
  Hi,

  dpkg -l libglib2.0-dev
  ii  libglib2.0-dev                                                2.24.0-0ubuntu1

  Just including <glib.h> results in a warning from within the headers
  if -Wcast-qual is used:

  >> gcc -c -Wcast-qual $(pkg-config --cflags glib-2.0) test.c -o test.o
  In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                   from /usr/include/glib-2.0/glib.h:34,
                   from test.c:1:
  /usr/include/glib-2.0/glib/gthread.h: In function ‘g_once_init_enter’:
  /usr/include/glib-2.0/glib/gthread.h:348: warning: cast discards qualifiers from pointer target type

  >> cat test.c 
  #include <glib.h>

  Cheers,
     Stefan.




More information about the foundations-bugs mailing list