Skip to content

Commit 4fa7730

Browse files
committed
Warning supression for current Mac OS X gcc chain.
1 parent 433948a commit 4fa7730

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pdcurses/util.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# endif
2121
#endif
2222

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

2525
/*man-start**************************************************************
2626
@@ -204,14 +204,16 @@ int PDC_mbtowc(wchar_t *pwc, const char *s, size_t n)
204204
# ifdef PDC_FORCE_UTF8
205205
wchar_t key;
206206
int i = -1;
207-
const unsigned char *string = s;
207+
const unsigned char *string;
208208

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

212212
if (!*s)
213213
return 0;
214214

215+
string = (const unsigned char *)s;
216+
215217
key = string[0];
216218

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

x11/x11.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <stdlib.h>
3333
#include <string.h>
3434

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

3737
#ifndef XPOINTER_TYPEDEFED
3838
typedef char * XPointer;
@@ -456,14 +456,16 @@ static int _from_utf8(wchar_t *pwc, const char *s, size_t n)
456456
{
457457
wchar_t key;
458458
int i = -1;
459-
const unsigned char *string = s;
459+
const unsigned char *string;
460460

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

464464
if (!*s)
465465
return 0;
466466

467+
string = (const unsigned char *)s;
468+
467469
key = string[0];
468470

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

0 commit comments

Comments
 (0)