#   compile  libcurses/refresh.o
/usr/src/obj/tooldir.NetBSD-7.99.66-amd64/bin/x86_64--netbsd-gcc -O2   -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Werror  -pipe -O2 -march=haswell -fPIE   --sysroot=/usr/src/obj/destdir.amd64 -I/usr/src/lib/libcurses -I/usr/src/lib/libterminfo -DHAVE_WCHAR  -c    /usr/src/lib/libcurses/refresh.c -o refresh.o
/usr/src/lib/libcurses/refresh.c: In function 'makech':
/usr/src/lib/libcurses/refresh.c:995:5: error: null argument where non-null required (argument 1) [-Werror=nonnull]
     if (((clsp - nlsp >= strlen(clr_eol) &&
     ^
cc1: all warnings being treated as errors

*** Failed target:  refresh.o