Skip to content

Fix compiler warning zero as null pointer constant

Biswapriyo Nath requested to merge (removed):fix-gcc-warning into kf5

    This uses nullptr instead of Z_NULL because the later one is defined
    with 0 integer value. Otherwise, the following warning is shown with
    gcc toolchain

    karchive/src/kgzipfilter.cpp:74:26: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
       74 |     d->zStream.next_in = Z_NULL;
          |                          ^~~~~~

Merge request reports