diff options
| author | Roy Marples <roy@marples.name> | 2014-02-04 14:39:26 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-02-04 14:39:26 +0000 |
| commit | a9d78def54772d69362d08a9ca83b657e26bd392 (patch) | |
| tree | 745a4d3b0661e98cec14f1f1bf9d00d979f655a8 /configure | |
| parent | 47ecfbd00258566085f39965bfa2d0d0ef37ac99 (diff) | |
| download | dhcpcd-a9d78def54772d69362d08a9ca83b657e26bd392.tar.xz | |
Remove DEBUG_MEMORY guard and always free memory and resources.
Remove all atexit(3) and exit(3) calls, instead exiting via the eloop.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -293,21 +293,16 @@ for x in $INCLUDEDIR; do echo "CPPFLAGS+= -I$x" >>$CONFIG_MK done -if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then - echo "Enabling memory debugging" - echo "CPPFLAGS+= -DDEBUG_MEMORY" >>$CONFIG_MK - echo "CFLAGS+= -g" >>$CONFIG_MK -elif [ -z "$DEBUG" -a -f .fslckout ]; then +if [ -z "$DEBUG" -a -f .fslckout ]; then printf "Found fossil checkout ... " DEBUG=yes - echo "CFLAGS+= -g" >>$CONFIG_MK else DEBUG=no fi if [ "$DEBUG" != no -a "$DEBUG" != false ]; then echo "Adding debugging CFLAGS" cat <<EOF >>$CONFIG_MK -CFLAGS+= -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 +CFLAGS+= -g -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 CFLAGS+= -Wmissing-prototypes -Wmissing-declarations CFLAGS+= -Wmissing-noreturn -Wmissing-format-attribute CFLAGS+= -Wredundant-decls -Wnested-externs |
