[Bug 96985] test-tpl-log-walker.c: function name 'rewind' conflicts with stdio.h

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 19 04:25:12 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=96985

--- Comment #1 from Ting-Wei Lan <lantw44 at gmail.com> ---
GCC error messages:

test-tpl-log-walker.c:172:1: error: conflicting types for ‘rewind’
 rewind (WalkerTestCaseFixture *fixture,
 ^~~~~~
In file included from glib-2.0/glib/gmessages.h:33:0,
                 from glib-2.0/glib.h:62,
                 from glib-2.0/gobject/gbinding.h:28,
                 from 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);
             ^~~~~~
Makefile:809: recipe for target 'test-tpl-log-walker.o' failed


Clang error messages:

test-tpl-log-walker.c:172:1: error: static declaration of 'rewind' follows
non-static declaration
rewind (WalkerTestCaseFixture *fixture,
^
/usr/include/stdio.h:266:7: note: previous declaration is here
void     rewind(FILE *);
         ^
test-tpl-log-walker.c:353:20: error: too many arguments to function call,
expected 1, have 3
  rewind (fixture, walker, 8);
  ~~~~~~           ^~~~~~~~~
/usr/include/stdio.h:266:1: note: 'rewind' declared here
void     rewind(FILE *);
^
test-tpl-log-walker.c:355:20: error: too many arguments to function call,
expected 1, have 3
  rewind (fixture, walker, 8);
  ~~~~~~           ^~~~~~~~~
/usr/include/stdio.h:266:1: note: 'rewind' declared here
void     rewind(FILE *);
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list