Bug 1176336 - [3.5 Regression] warning: unknown attribute '__alloc_size__' ignored [-Wunknown-attributes]
Summary: [3.5 Regression] warning: unknown attribute '__alloc_size__' ignored [-Wunkno...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-20 18:01 UTC by Jan Kratochvil
Modified: 2015-11-13 17:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-13 17:44:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.