Linker warnings for deprecated functions

  • user warning: Table 'drupal_herzi_eu.semaphore' doesn't exist query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in /var/lib/www/shared/drupal-6.16/includes/lock.inc on line 154.
  • user warning: Table 'drupal_herzi_eu.semaphore' doesn't exist query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in /var/lib/www/shared/drupal-6.16/includes/lock.inc on line 154.
  • user warning: Table 'drupal_herzi_eu.semaphore' doesn't exist query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in /var/lib/www/shared/drupal-6.16/includes/lock.inc on line 154.
  • user warning: Table 'drupal_herzi_eu.semaphore' doesn't exist query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in /var/lib/www/shared/drupal-6.16/includes/lock.inc on line 154.

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

Tags for Linker warnings for deprecated functions