Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #12616

Re: inline

From blp@cs.stanford.edu (Ben Pfaff)
Newsgroups comp.lang.c
Subject Re: inline
Date 2011-11-03 12:50 -0700
Message-ID <877h3hf0jy.fsf@blp.benpfaff.org> (permalink)
References <j8ubn1$6vb$1@speranza.aioe.org> <87mxcdfair.fsf@blp.benpfaff.org> <j8upic$fu8$1@speranza.aioe.org>

Show all headers | View raw


"Mark" <mark_cruzNOTFORSPAM@hotmail.com> writes:

> For the second case "gcc -std=c99 -pedantic -W -Wall" gives
> warning: 'inline' is not at beginning of declaration. Why does
> gcc care about the sequence if both representations are correct
> ?

It's customary to put 'inline' at the beginning.  GCC is
suggesting that you might have made a mistake.  It's a warning,
not an error, so you can ignore it or turn it off if you prefer
to use an unusual ordering.
-- 
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa67f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

inline "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2011-11-03 11:13 -0400
  Re: inline blp@cs.stanford.edu (Ben Pfaff) - 2011-11-03 09:14 -0700
    Re: inline "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2011-11-03 15:20 -0400
      Re: inline blp@cs.stanford.edu (Ben Pfaff) - 2011-11-03 12:50 -0700
      Re: inline Kaz Kylheku <kaz@kylheku.com> - 2011-11-03 20:10 +0000
      Re: inline Keith Thompson <kst-u@mib.org> - 2011-11-03 13:51 -0700

csiph-web