Public bug reported:

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.

** Affects: glib2.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
/usr/include/glib-2.0/glib/gthread.h:348: warning: cast discards qualifiers 
from pointer target type
https://bugs.launchpad.net/bugs/554278
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to glib2.0 in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to