It will add a warning per call to calculate_displacement in the alpha. Daniel Grunblatt.
On Sat, 26 Jan 2002, Nicholas Clark wrote: > Appended patch gets rid of these two: > > cc -pipe -Os -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow >-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion >-Waggregate-return -Winline -W -Wsign-compare -Wno-unused -I./include -DHAS_JIT >-DI386 -o jit.o -c jit.c > jit.c: In function `build_asm': > jit.c:192: warning: cast discards qualifiers from pointer target type > jit.c:195: warning: cast discards qualifiers from pointer target type > > > However, I'm not really convinced that it's quite the right way to do it. > It more feels like a brute force splattering of "const" in a few places to > make gcc shut up, rather than anything that adds to the readability or > maintainability of the code. And not tested on alpha, because I don't have > one. > > Nicholas Clark > -- > ENOCHOCOLATE http://www.ccl4.org/~nick/CV.html