Bug 63863 - New warnings in libobjc due to the move over to GNU11 by default
Summary: New warnings in libobjc due to the move over to GNU11 by default
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libobjc (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: ---
Assignee: Andrew Pinski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-14 09:56 UTC by Andrew Pinski
Modified: 2015-01-27 16:53 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2014-11-14 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2014-11-14 09:56:19 UTC
/var/lib/jenkins/workspace/GCCupstream/libobjc/sendmsg.c:338:13: warning: ‘get_implementation’ is static but used in inline function ‘get_imp’ which is not static
       res = get_implementation(nil, class, sel);
             ^
/var/lib/jenkins/workspace/GCCupstream/libobjc/sendmsg.c:335:15: warning: ‘sarray_get_safe’ is static but used in inline function ‘get_imp’ which is not static
   void *res = sarray_get_safe (class->dtable, (size_t) sel->sel_id);
               ^
/var/lib/jenkins/workspace/GCCupstream/libobjc/sendmsg.c:143:21: warning: ‘__objc_word_forward’ is static but used in inline function ‘__objc_get_forward_imp’ which is not static
         return (IMP)__objc_word_forward;
                     ^
/var/lib/jenkins/workspace/GCCupstream/libobjc/sendmsg.c:141:21: warning: ‘__objc_double_forward’ is static but used in inline function ‘__objc_get_forward_imp’ which is not static
         return (IMP)__objc_double_forward;
                     ^
/var/lib/jenkins/workspace/GCCupstream/libobjc/sendmsg.c:139:21: warning: ‘__objc_block_forward’ is static but used in inline function ‘__objc_get_forward_imp’ which is not static
         return (IMP)__objc_block_forward;
                     ^
Comment 1 Andrew Pinski 2014-11-14 09:56:56 UTC
I will try to fix it this weekend.
Comment 2 Andrew Pinski 2015-01-27 16:53:36 UTC
Fixed by:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=220175