Subject: Re: toolchain/22118: make won't compile with -Wcast-qual -Wstrict-prototypes and more
To: None <tech-toolchain@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-toolchain
Date: 07/11/2003 16:41:49
> #define __UNCONST(pointer) strchr(pointer, *(char *)(void *)pointer)
That works only if it points to at least one byte. For example, you
can't use it if the pointer might be nil. Also, if you use
-Wcast-qual, you want *(const char *)(const void *)pointer.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B