[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Warnings with -Wcast-qual, -Wcast-align and -Wunused-para
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Warnings with -Wcast-qual, -Wcast-align and -Wunused-parameter enabled |
Date: |
Sun, 26 Mar 2017 18:05:05 +0200 (CEST) |
> With the warnings -Wcast-qual, -Wcast-align enabled the compiler
> (clang as well as GCC) prints out a slew of warnings especially of
> the former type.
Currently, both `-Wcast-qual' and `-Wcast-align' are not taken into
account. We try hard to make `-Wall' run without warnings, however,
the two additional warning flags are not part of it.
> Also I get a few -Wunused-parameter warnings.
Really? I don't get this. Please elaborate.
> On gcc I remember additionally getting some warnings about shadowing
> global symbols, but I might be mistaken.
Ditto.
> Right now I’m tempted to turn off the default -Werror for the build
> process or disable said warnings, but it is probably better not to
> if I can avoid it.
Patches are welcomed that don't uglify the source code.
Werner
Re: [ft-devel] Warnings with -Wcast-qual, -Wcast-align and -Wunused-parameter enabled,
Werner LEMBERG <=