Created attachment 202346 [details] patch Base GCC doesn't support -Wno-extra-tokens, so remove this flag. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.
A commit references this bug: Author: mi Date: Sun Mar 3 23:00:40 UTC 2019 New revision: 494530 URL: https://svnweb.freebsd.org/changeset/ports/494530 Log: Fix handling of (some of) the warnings, by fixing them at the sources, rather than disabling them on command-line. The disabling was not working with gcc. PR: 236018 Submitted by: Piotr Kubaj Changes: head/graphics/libjxr/Makefile head/graphics/libjxr/files/BSDmakefile.JxrDecApp head/graphics/libjxr/files/BSDmakefile.JxrEncApp head/graphics/libjxr/files/BSDmakefile.jxrgluelib head/graphics/libjxr/files/BSDmakefile.libjpegxr head/graphics/libjxr/files/patch-jxrlib_warnings
Thanks, Piotr, I committed your patch. However, there are some other warnings -- such having to do with shifting of negative numbers -- which might break subtly on those non-x86 platforms too...