Bug 1176336

Summary: [3.5 Regression] warning: unknown attribute '__alloc_size__' ignored [-Wunknown-attributes]
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: llvmAssignee: Adam Jackson <ajax>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: ajax, bos, dmalcolm, jan.kratochvil, jv+fedora, petersen, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-13 17:44:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Kratochvil 2014-12-20 18:01:34 UTC
clang-3.4-15.fc21.x86_64
$ echo '#include <glib.h>'|clang $(pkg-config --cflags glib-2.0) -c -o /dev/null -x c -
$ _

clang-3.5.0-4.fc21.x86_64
$ echo '#include <glib.h>'|clang $(pkg-config --cflags glib-2.0) -c -o /dev/null -x c -

In file included from <stdin>:1:
In file included from /usr/include/glib-2.0/glib.h:50:
In file included from /usr/include/glib-2.0/glib/ghash.h:33:
In file included from /usr/include/glib-2.0/glib/glist.h:32:
/usr/include/glib-2.0/glib/gmem.h:76:58: warning: unknown attribute '__alloc_size__' ignored [-Wunknown-attributes]
gpointer g_malloc         (gsize         n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
                                                                ^
/usr/include/glib-2.0/glib/gmacros.h:67:45: note: expanded from macro 'G_GNUC_ALLOC_SIZE'
#define G_GNUC_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
                                            ^
$ echo '#include <glib.h>'|clang $(pkg-config --cflags glib-2.0) -c -o /dev/null -Wno-unknown-attributes -x c -
$ _

Comment 1 Fedora End Of Life 2015-11-04 14:36:29 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Jan Kratochvil 2015-11-13 17:44:55 UTC
No warnings for:
clang-3.7.0-1.fc24.x86_64
glib2-devel-2.46.1-2.fc24.x86_64