After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340054 - guniprop.c: bsearch is undefined
guniprop.c: bsearch is undefined
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.10.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-04-28 19:22 UTC by Kazuki Iwamoto
Modified: 2006-04-28 20:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2006-04-28 19:22:01 UTC
Please describe the problem:
'bsearch' is used without prototype declaration.
stdlib.h should be included in guniprop.c.

Steps to reproduce:
1. compile guniprop.c.

Actual results:
Following message is displayed. (Visual C++ 6.0)
guniprop.c(485) : error C4013: 'bsearch' undefined; assuming extern returning int

Expected results:
Add '#include <stdlib.h>'

Does this happen every time?


Other information:
Comment 1 Behdad Esfahbod 2006-04-28 20:39:06 UTC
My fault, thanks.

2006-04-28  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c: #include <stdlib.h>