Linker warnings for deprecated functions
Lennart found the asm code in FreeBSD that makes GNU ld give a warning when using certain functions:
diff --git a/display.c b/display.c
index 24bba79..a0376f2 100644
--- a/display.c
+++ b/display.c
@@ -63,6 +63,10 @@ enum {
G_DEFINE_TYPE (Display, display, GTK_TYPE_WIDGET);
+_asm_(".section .gnu.warning.display_get_type");
+_asm_(".asciz \"sliff\"");
+_asm_(".previous");
+
static void
display_init (Display* self)
{
This will result in a warning like this when using the symbol display_get_type:
/tmp/ccyWmICf.o: In function `display_notify_can_step_left':
browser.c:(.text+0x7): warning: sliff
Trackback URL for this post:
http://web.herzi.eu/en/trackback/130
