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 724737 - prevent implicit declarations
prevent implicit declarations
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.39.x
Other OpenBSD
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-19 16:44 UTC by Antoine Jacoutot
Modified: 2015-02-07 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
prevent implicit declarations (580 bytes, patch)
2014-02-19 16:44 UTC, Antoine Jacoutot
accepted-commit_now Details | Review

Description Antoine Jacoutot 2014-02-19 16:44:11 UTC
Created attachment 269702 [details] [review]
prevent implicit declarations

Hi.

I'm seeing the following on OpenBSD when compiling g-o-i from git master:

giscanner/scannerlexer.l: In function 'yylex':
giscanner/scannerlexer.l:74: warning: implicit declaration of function 'strncpy'
giscanner/scannerlexer.l:74: warning: incompatible implicit declaration of built-in function 'strncpy'
giscanner/scannerlexer.l: In function 'check_identifier':
giscanner/scannerlexer.l:323: warning: implicit declaration of function 'strcmp'
giscanner/scannerlexer.l: At top level:
scannerlexer.c:2779: warning: 'yy_flex_realloc' defined but not used
  CC       libgiscanner_la-scannerparser.lo
giscanner/scannerlexer.l: In function 'yylex':
giscanner/scannerlexer.l:74: warning: implicit declaration of function 'strncpy'
giscanner/scannerlexer.l:74: warning: incompatible implicit declaration of built-in function 'strncpy'
giscanner/scannerlexer.l: In function 'check_identifier':
giscanner/scannerlexer.l:323: warning: implicit declaration of function 'strcmp'
Comment 1 Emmanuele Bassi (:ebassi) 2014-02-19 17:22:51 UTC
Review of attachment 269702 [details] [review]:

looks good to me.
Comment 2 Antoine Jacoutot 2014-02-19 17:40:13 UTC
(In reply to comment #1)
> Review of attachment 269702 [details] [review]:
> 
> looks good to me.

Thanks Emmanuele, it's in: 89e84d0
Comment 3 André Klapper 2015-02-07 17:01:40 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]