headersclean: Re-add zero-as-null-pointer-constant warning

Amends 0f985e16ba741695182020f2c6a952f31e44c722, which accidentally
dropped this flag (duh!).

Change-Id: Ie772f9e524625edfcdcda4d73a9a712fcd77f8c8
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Kai Köhne 2023-12-06 14:40:48 +01:00 committed by Marc Mutz
parent 65081c67f3
commit c5864a96a6

View File

@ -120,7 +120,8 @@ function(qt_internal_add_headersclean_target module_target module_headers)
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
list(APPEND hcleanFLAGS -Wdouble-promotion -Wfloat-conversion)
list(APPEND hcleanFLAGS -Wzero-as-null-pointer-constant
-Wdouble-promotion -Wfloat-conversion)
endif()
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang|IntelLLVM")