Re: Function call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wwp wrote:

> > > The statement funckey; 'not wrong'. 
> > > You can compile your program with -Wall option to see a warning message
> > > saying this. 
> > 
> > fk.c:8: warning: statement with no effect
> 
> I'm not sure w/ gcc, but a "statement with no effect" might not mean that the
> statement isn't compiled and generates code.. that will have no effect ;-).

Without optimisation, it might generate some code (e.g. putting the
value funckey into a register). With optimisation, wouldn't expect any
code to be generated.

-- 
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
-
: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux