Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#353 inlude/wchar.h: Calm the warning police.

closed-accepted
None
2008-03-21
2008-01-19
Danny Smith
No

The following quiets warnings from -Wprototypes

ChangeLog

2008-01-19 Danny Smith <dannysmithusers.sourceforge.net

\* inclue/wchar.h \(fwide\): Add prototype and guard inline
definition.
\(mbsinit\): Likewise.

Index: include/wchar.h

RCS file: /cvs/src/src/winsup/mingw/include/wchar.h,v
retrieving revision 1.27
diff -u -3 -p -r1.27 wchar.h
--- include/wchar.h 3 Oct 2007 18:55:56 -0000 1.27
+++ include/wchar.h 19 Jan 2008 09:01:19 -0000
@@ -287,11 +287,15 @@ size_t __cdecl __MINGW_NOTHROW wcsrtombs
int __cdecl __MINGW_NOTHROW wctob(wint_t);

#ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */
+int __cdecl __MINGW_NOTHROW fwide(FILE*, int);
+int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t*);
+#ifndef __NO_INLINE__
__CRT_INLINE int __cdecl __MINGW_NOTHROW fwide(FILE* __UNUSED_PARAM(stream),
int __UNUSED_PARAM(mode))
{return -1;} /* limited to byte orientation */
__CRT_INLINE int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t* __UNUSED_PARAM(ps))
{return 1;}
+#endif
wchar_t* __cdecl __MINGW_NOTHROW wmemset(wchar_t *, wchar_t, size_t);
wchar_t* __cdecl __MINGW_NOTHROW wmemchr(const wchar_t*, wchar_t, size_t);
int wmemcmp(const wchar_t*, const wchar_t *, size_t);

Discussion

    • assigned_to: nobody --> ir0nh34d
     
  • Logged In: YES
    user_id=570619
    Originator: NO

    Committed to CVS.

     
    • status: open --> closed-accepted