ddd: Fix compilation with Clang

See upstream bug https://savannah.gnu.org/bugs/?41997.

Closes #28217.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>