sorry I deleted my post as I wanted to clear some things up. Thanks for the heads up
am in the process of trying out a few things because I should have done it earlier.
edit Rich replied and the main parts of his reply refer to this
gcc $CFLAGS -Wall -Wextra -fwhole-program -c $P.c -g
grabber.c: In function ‘main’:
grabber.c:588:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
int main(int argc, char *argv[])
^~~~
grabber.c:817:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
status|=KILLALL;
^
grabber.c:818:6: note: here
case XK_q: // ****** Quit current instance program
^~~~
grabber.c:854:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
AddCursor();
^~~~~~~~~~~
grabber.c:855:6: note: here
case XK_s: // ****** Save an image
gcc $CXX -I. -L. $P.o -o exe -lImlib2 -lX11 -lXfixes
# no output
but I saw I had not used $CXX in my first post which I deleted so was hoping he had not seen it, so I could try out some stuff.
more later