[splint-discuss] Re: Bogus warnings when assigning literals to uint8_t

Grant Edwards grante at visi.com
Mon Nov 1 10:22:25 EST 2004


On Mon, Nov 01, 2004 at 01:18:46PM +0100, Anton Graf wrote:
> I got rid of the warning by switching on charint,
>  
> /*@+charint@*/
>  
> static uint8_t n;
>  
> void foo(void)
> {
>  n = 5;
> }
> but I do not know exactly which other errors may be hidden by this.

It hides the other example I gave in my post where I think a
warning is warrented:

uint8_t n;
uint16_t u;

static foo(void)
  {
    n = u;
  }

-- 
Grant Edwards
grante at visi.com



More information about the splint-discuss mailing list