public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to print pointer to function?
@ 2019-12-12  9:30 Josef Wolf
  2019-12-12  9:44 ` Jonathan Wakely
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Josef Wolf @ 2019-12-12  9:30 UTC (permalink / raw)
  To: gcc-help

Hello,

I would like to print the pointer to a function for debugging purposes.

But I keep getting a warning:

  ttt.c: In function 'insert_transfer':
  ttt.c:7:37: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
      7 |     printf ("lost transfer %p\r\n", (void*)rdyfunc);

Is there any way to get rid of this warning?

-- 
Josef Wolf
jw@raven.inka.de

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

end of thread, other threads:[~2019-12-18 11:12 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12  9:30 How to print pointer to function? Josef Wolf
2019-12-12  9:44 ` Jonathan Wakely
2019-12-12  9:49 ` Liu Hao
2019-12-12 11:00   ` Josef Wolf
2019-12-17 12:56     ` Vincent Lefevre
2019-12-17 13:17       ` Liu Hao
2019-12-17 13:27         ` Segher Boessenkool
2019-12-17 14:52         ` Vincent Lefevre
2019-12-17 13:22       ` Segher Boessenkool
2019-12-17 15:23         ` Vincent Lefevre
2019-12-17 15:27         ` Manfred
2019-12-17 16:30           ` Vincent Lefevre
2019-12-17 22:49             ` Segher Boessenkool
2019-12-18  2:39             ` Liu Hao
2019-12-18 10:05               ` David Brown
2019-12-18 11:12                 ` Segher Boessenkool
2019-12-17 13:01 ` Vincent Lefevre

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 read-only IMAP folder(s) and NNTP newsgroup(s).