graphics/dspdfviewer: Fix build failures for clang 21.1.8
Change applies to 16.0-CURRENT (1600018 and above).