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 551410 - gtestutils.c: using printf without prototype
gtestutils.c: using printf without prototype
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.18.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-09-08 18:55 UTC by Kazuki Iwamoto
Modified: 2008-09-10 22:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2008-09-08 18:55:40 UTC
Please describe the problem:
'printf' is used without the prototype declaration in gtestutils.c.
'stdio.h' should be included.

Steps to reproduce:
1. compile gtestutils.c

Actual results:
Following message is displayed.(Visual C++)
gtestutils.c(355) : error C4013: 'printf' undefined; assuming extern returning int

Expected results:
Add '#include "stdio.h"'.

Does this happen every time?
Revision 7442 or later

Other information:
Comment 1 Matthias Clasen 2008-09-10 22:39:53 UTC
2008-09-10  Matthias Clasen  <mclasen@redhat.com>

        Bug 551410 – gtestutils.c: using printf without prototype

        * glib/gtestutils.c: Include stdio.h. Pointed out by Kazuki Iwamoto.