[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#44491: -Wpointer-arith produces warnings in /usr/include/bits/string2.h



Package: libc6-dev
Version: 2.1.2-0pre12
Severity: normal

Compiling with -Wpointer-arith (the default for Gnome)
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:419: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:427: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:432: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:437: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:439: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:444: warning: pointer of type `void *' used in arithmetic

Similar warnings are also produced by any code which calls memset.

NOTE : this is probably the same bug as #42490, hopefully it contains more detail.

-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux parallel 2.2.10 #17 SMP Tue Jun 15 11:06:57 EDT 1999 i686

Versions of packages libc6-dev depends on:
ii  libc6                       2.1.2-0pre12 GNU C Library: Shared libraries an


Reply to: