Bug 97034

Summary: test-tpl-log-walker.c:172:1: error: conflicting types for ‘rewind’
Product: Telepathy Reporter: Michael Catanzaro <mcatanzaro>
Component: loggerAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: lantw44, mcatanzaro
Version: git master   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix build

Description Michael Catanzaro 2016-07-21 23:21:56 UTC
I guess something is including stdio.h somewhere it previously wasn't, because telepathy-logger doesn't build in GNOME JHBuild on Fedora 24:

test-tpl-log-walker.c:172:1: error: conflicting types for ‘rewind’
 rewind (WalkerTestCaseFixture *fixture,
 ^~~~~~
In file included from /home/mcatanzaro/src/jhbuild/install/include/glib-2.0/glib/gmessages.h:33:0,
                 from /home/mcatanzaro/src/jhbuild/install/include/glib-2.0/glib.h:62,
                 from /home/mcatanzaro/src/jhbuild/install/include/glib-2.0/gobject/gbinding.h:28,
                 from /home/mcatanzaro/src/jhbuild/install/include/glib-2.0/glib-object.h:23,
                 from ../../tests/lib/simple-account.h:14,
                 from test-tpl-log-walker.c:5:
/usr/include/stdio.h:759:13: note: previous declaration of ‘rewind’ was here
 extern void rewind (FILE *__stream);
             ^~~~~~

Probably should just rename that function and be done with it.
Comment 1 Michael Catanzaro 2016-07-21 23:24:31 UTC
Created attachment 125248 [details] [review]
Fix build
Comment 2 George Kiagiadakis 2016-07-22 04:37:21 UTC

*** This bug has been marked as a duplicate of bug 96985 ***
Comment 3 Debarshi Ray 2016-07-22 14:03:01 UTC
Comment on attachment 125248 [details] [review]
Fix build

Review of attachment 125248 [details] [review]:
-----------------------------------------------------------------

Pushed after adding the bug URL. Thanks, Michael.
Comment 4 Debarshi Ray 2016-07-22 14:04:26 UTC
*** Bug 96985 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.