In most such cases there are workarounds, that are not related to *WERROR, but for starters, you could try the -fpermissive flag (for more, read the gcc manpage). Perhaps you could also include which port is the one giving you the problems, since your report is pretty generic.
Note, that not...