Skip to content

Commit

Permalink
Warning supression for current Mac OS X gcc chain.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmcbrine committed May 4, 2007
1 parent 433948a commit 4fa7730
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pdcurses/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# endif
#endif

RCSID("$Id: util.c,v 1.63 2007/04/28 01:09:54 wmcbrine Exp $");
RCSID("$Id: util.c,v 1.64 2007/05/04 01:38:34 wmcbrine Exp $");

/*man-start**************************************************************
Expand Down Expand Up @@ -204,14 +204,16 @@ int PDC_mbtowc(wchar_t *pwc, const char *s, size_t n)
# ifdef PDC_FORCE_UTF8
wchar_t key;
int i = -1;
const unsigned char *string = s;
const unsigned char *string;

if (!s || (n < 1))
return -1;

if (!*s)
return 0;

string = (const unsigned char *)s;

key = string[0];

/* Simplistic UTF-8 decoder -- only does the BMP, minimal
Expand Down
6 changes: 4 additions & 2 deletions x11/x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <stdlib.h>
#include <string.h>

RCSID("$Id: x11.c,v 1.85 2007/05/01 01:31:27 wmcbrine Exp $");
RCSID("$Id: x11.c,v 1.86 2007/05/04 01:38:34 wmcbrine Exp $");

#ifndef XPOINTER_TYPEDEFED
typedef char * XPointer;
Expand Down Expand Up @@ -456,14 +456,16 @@ static int _from_utf8(wchar_t *pwc, const char *s, size_t n)
{
wchar_t key;
int i = -1;
const unsigned char *string = s;
const unsigned char *string;

if (!s || (n < 1))
return -1;

if (!*s)
return 0;

string = (const unsigned char *)s;

key = string[0];

/* Simplistic UTF-8 decoder -- only does the BMP, minimal
Expand Down

0 comments on commit 4fa7730

Please sign in to comment.