[InterNetNews/inn] 3ff391: ovdb_stat: Silent -Wnull-pointer-subtraction
Julien ÉLIE
noreply at github.com
Sun Feb 11 08:39:30 UTC 2024
Branch: refs/heads/main
Home: https://github.com/InterNetNews/inn
Commit: 3ff391b3583eac186b74a4914f816e94f5ab39a3
https://github.com/InterNetNews/inn/commit/3ff391b3583eac186b74a4914f816e94f5ab39a3
Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
Date: 2024-02-11 (Sun, 11 Feb 2024)
Changed paths:
M frontends/ovdb_stat.c
Log Message:
-----------
ovdb_stat: Silent -Wnull-pointer-subtraction
Substracting (char *) 0 for alignment purpose is supported by compilers
like GCC or Clang, but is undefined behaviour by the C Standard as it is
unknown whether all hardware platforms can actually process such pointer
arithmetic (many, if not all, can anyway).
More information about the inn-committers
mailing list