How to print pointer to function?

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

 



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@xxxxxxxxxxxxx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux