Gnucap has two different modes for compiling.
For g++, the following compile options are used to enable additional warnings.
-DUNIX -g -O0 -I. -I../../include -DTRACE_UNTESTED \ -Wall -Wextra \ -Wswitch-enum -Wundef -Wpointer-arith -Woverloaded-virtual \ -Wcast-qual -Wcast-align -Wpacked -Wshadow -Wconversion \ -Winit-self -Wmissing-include-dirs -Winvalid-pch \ -Wvolatile-register-var -Wstack-protector \ -Wlogical-op -Wvla -Woverlength-strings -Wsign-conversion