# New Ticket Created by Joshua Isom # Please include the string: [perl #44389] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44389 >
The new attribute configure code seems to get a false positive with warn_unused_result on Apple's gcc 3.3. Here's the configure output from the attribute checking code. Detecting compiler attributes (-DHASATTRIBUTE_xxx)... trying attribute 'HASATTRIBUTE_CONST' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_CONST test.c exit code: 1 trying attribute 'HASATTRIBUTE_DEPRECATED' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_DEPRECATED test.c exit code: 1 trying attribute 'HASATTRIBUTE_FORMAT' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_FORMAT test.c exit code: 1 trying attribute 'HASATTRIBUTE_MALLOC' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_MALLOC test.c exit code: 1 trying attribute 'HASATTRIBUTE_NONNULL' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_NONNULL test.c exit code: 1 trying attribute 'HASATTRIBUTE_NORETURN' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_NORETURN test.c exit code: 1 trying attribute 'HASATTRIBUTE_PURE' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_PURE test.c exit code: 1 trying attribute 'HASATTRIBUTE_UNUSED' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_UNUSED test.c exit code: 1 trying attribute 'HASATTRIBUTE_WARN_UNUSED_RESULT' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_WARN_UNUSED_RESULT test.c exit code: 1 trying attribute 'HASATTRIBUTE_NEVER_WORKS' cc: cc cc -o test -Iinclude -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_NEVER_WORKS test.c exit code: 1 My CC: ccache gcc -I./include -fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -I/sw/include -I/sw/include -I /sw/include -g -W -Wall -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Winline -Wpointer-arith -Wcast-qual -Wwrite-strings -Waggregate-return -Winline -Wno-unused -Wnested-externs -Wsign-compare -falign-functions=16 -Wformat-nonliteral -Wformat-security -Wpacked -Wdisabled-optimization -Wno-shadow -DHAS_JIT -DPPC -DHAVE_COMPUTED_GOTO -I. -o xx.o -c xx.c And some of gcc's output. include/parrot/stacks.h:56: warning: `warn_unused_result' attribute directive ignored include/parrot/stacks.h:56: warning: `warn_unused_result' attribute directive ignored include/parrot/stacks.h:68: warning: `warn_unused_result' attribute directive ignored include/parrot/stacks.h:80: warning: `warn_unused_result' attribute directive ignored