! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
implicit declaration of malloc/realloc/calloc/free
Status:
RESOLVED: FIXED
Product:
Xfce4-cpugraph-plugin
Component:
General

Comments

Description Christoph Mende 2009-02-23 21:24:31 CET
* QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * cpu.c:253: warning: incompatible implicit declaration of built-in function 'malloc'
 * cpu.c:1026: warning: incompatible implicit declaration of built-in function 'realloc'
 * os.c:20: warning: incompatible implicit declaration of built-in function 'free'
 * os.c:44: warning: incompatible implicit declaration of built-in function 'calloc'
 * os.c:123: warning: incompatible implicit declaration of built-in function 'free'
 * os.c:138: warning: incompatible implicit declaration of built-in function 'free'

missing #include <stdlib.h> in both
Comment 1 Florian Rivoal editbugs 2010-02-07 06:01:51 CET
*** Bug 5741 has been marked as a duplicate of this bug. ***
Comment 2 Florian Rivoal editbugs 2010-02-07 06:28:24 CET
The problem, rather than the missing include, is the use of the plain form or
malloc, realloc, calloc and free, rather their g_* variants.
Comment 3 Florian Rivoal editbugs 2010-04-17 14:42:17 CEST
This should now be fixed

Bug #4984

Reported by:
Christoph Mende
Reported on: 2009-02-23
Last modified on: 2010-10-03
Duplicates (1):
  • 5741 [patch] xfce4-cpugraph-plugin-0.4.0 is using free and realloc but is missing stdlib.h from #include

People

Assignee:
Florian Rivoal
CC List:
2 users

Version

Attachments

Additional information