Subject: Re: isspace(char) can't be used with -Wall -Werror
To: None <current-users@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: current-users
Date: 03/30/2006 16:54:53
On Thu, Mar 30, 2006 at 03:01:35PM +0200, Magnus Henoch wrote:
> Compiling the following program with compiler switches -Wall
> -Werror fails with "warning: subscript has type `char'" for the
> isspace macro expansion.

You need to cast (after making sure it is not EOF) the argument to unsinged
int.

> should linphone or NetBSD be changed?

Linphone.

Martin