[LLVMbugs] [Bug 5605] horrible diagnostic for attribute applied to definition
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 21 15:54:52 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=5605
Kaelyn Uhrain <rikka at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rikka at google.com
Resolution| |FIXED
--- Comment #4 from Kaelyn Uhrain <rikka at google.com> 2012-06-21 17:54:52 CDT ---
With the 3.1 release, clang gives some warnings in the example code but
otherwise accepts it:
$ cat t.c
#define A __attribute__((cf_returns_retained))
void *f0() A
{}
$ clang -c t.c
t.c:2:12: warning: GCC does not allow cf_returns_retained attribute in this
position on a function
definition [-Wgcc-compat]
void *f0() A
^
t.c:1:26: note: expanded from macro 'A'
#define A __attribute__((cf_returns_retained))
^
t.c:3:2: warning: control reaches end of non-void function [-Wreturn-type]
{}
^
2 warnings generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list