http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60373

            Bug ID: 60373
           Summary: half warning: visibility attribute ignored because it
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org

#include <new>
__attribute__((visibility("hidden")))void*operator new(std::size_t);

g++ -std=c++11 v.cc -c 
v.cc:2:43: warning: 'void* operator new(std::size_t)': visibility attribute
ignored because it [-Wattributes]
 __attribute__((visibility("hidden")))void*operator new(std::size_t);
                                           ^

You need -Wsystem-headers to kill the suspense. I think we should get the
second half of the sentence in all cases...

Reply via email to