Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] gnuarm question

2006-02-10 by David Hawkins

> returns this as a warning:
> 
> test.c: In function `test':
> test.c:32: warning: passing arg 1 of `is_any' discards qualifiers from 
> pointer target type
> 
> this is because you're passing a "const uchar *" as a "uchar *" 
> param.  Changing either the function to is_any(const unsigned char 
> *,char)  or removing const from the string declaration removes this 
> warning, but it's only a warning, it won't effect the execution.

It would be good programming practice to change the function to take
a const char. This tells the compiler and user that the function
does not modify what that argument points to.

Dave

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.