Why are assertions in zlib on Unix switched off?
Thomas Stüfe
thomas.stuefe at gmail.com
Tue Nov 26 14:18:18 UTC 2013
Hi everyone,
When building the zlib on Unix platforms, zlib assertions are switched off
explicitly using -UDEBUG:
84 ifeq ($(PLATFORM), windows)
87 else
88 CPPFLAGS += -UDEBUG
89 endif
This switches off assertions inside the zlib (see zutil.h, zutil,c inside
the zlib).
Does anyone know why this was done? And why not for windows?
Background: I investigate a case where we get a zlib assert on Windows and
I wondered why this did not show up on Unix.
Kind Regards, Thomas
More information about the build-dev
mailing list