> > >string.h:17: warning: conflicting types for built-in function `memset'
> > 
> > Here is the appropriate section of string.h:
> > 
> > >typedef unsigned long size_t;
> > >
> > >extern void *memzero(void *ptr, int size);
> > >
> > >extern void *memset(void *ptr, int byte, size_t size);
> > >
> > >extern int memeq(const void *m1, const void *m2, size_t size);
> > 
> > I know this is probably not important. But it just obsesses me for two days now,
> > every time I see it passing while I build the BIOS.
> 
> It's a mismatch between what the compiler thinks the arguments should be to
> memset() and what I'd like them to be.  Some (newer) versions of GCC have
> a version of memset() built into them.  However, the warning is harmless 
> in this case, and probably should be fixed.

Perhaps the compiler want size_t to be unsigned int, rather than
unsigned long?  Even if they are the same size they are, I think,
distinct types.

        paul
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to