linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* type qualifiers on function return types?
@ 2005-12-08 12:32 Robert P. J. Day
  2005-12-08 16:58 ` Steve Graegert
  0 siblings, 1 reply; 10+ messages in thread
From: Robert P. J. Day @ 2005-12-08 12:32 UTC (permalink / raw)
  To: C programming list


  i was just handed a pile of source code that, upon first build,
complains thusly:

header.h:20: warning: type qualifiers ignored on function return type
header.h:22: warning: type qualifiers ignored on function return type

  at those lines, we read:

  typedef struct blah {
    volatile void           (**start_address)(void);    <--
    volatile char*          stack;
    volatile void           (**manual_start_address)(void); <--
    ...

which seems to explain the warnings since i never thought you could
add type qualifiers to function return types.  or is there something
incredibly clever happening here that i've never seen before?  just
wondering why someone would have coded it that way in the first place.

thanks.

rday

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-12-09 19:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08 12:32 type qualifiers on function return types? Robert P. J. Day
2005-12-08 16:58 ` Steve Graegert
2005-12-08 17:43   ` Nate Jenkins
2005-12-08 18:00     ` Robert P. J. Day
2005-12-08 18:07     ` Steve Graegert
2005-12-08 18:16       ` Nate Jenkins
2005-12-09 19:25     ` Glynn Clements
2005-12-08 17:58   ` Robert P. J. Day
2005-12-09 19:03     ` Glynn Clements
2005-12-09 19:04       ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).