Skip to content

WCDH: use better fallback value for nullptr with old gcc versions

Rolf Eike Beer requested to merge DerDakon/cmake:wcdh-gcc-null into master

GCC supports the __null builtin basically forever (since at least 2.95), which behaves very much like nullptr later does. Use this instead of plain "0" as fallback value, otherwise passing the define to functions annotated with attribute((sentinel)) will result in a compiler warning.

This is the uncritical part of !1869 (merged).

Merge request reports