Re: howto get rid of 'pointer arguments differ in signedness'



David Schwartz <davids@xxxxxxxxxxxxx> writes:
On Jun 6, 3:04 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
Since gcc 4, gcc has acquired the annoying habit to warn about
sign differences in pointed-to types, for instance, as in

No, you *ASKED* it to do so.

No, I didn't *ASK* it to enable this particular warning. -Wall does
not mean 'all warnings' but 'some subset of them the gcc developers
consider exceptionally useful'. This subset has been changed, aka 'gcc
developed the habit'.

When compiled with -Wall, this will result in the following output:

You specifically chose to compile with '-Wall' which means you *ASKED*
it to warn about anything that might potentially be an issue.

That may be how you believe it to be, but not how it is.

`-Wall'
All of the above `-W' options combined. This enables all the
warnings about constructions that some users consider
questionable, and that are easy to avoid (or modify to prevent the
warning),

The all doesn't even theoretically mean 'all possible warnings', it
means 'all warnings that have been documented so far'.
.



Relevant Pages

  • Re: gfortran -W switch?
    ... I can't find a description of the -W switch in the gfortran ... GCC became the name for all of the compilers ... warnings that -Wall does not enable. ... This enables some extra warning flags that are not enabled by ...
    (comp.lang.fortran)
  • Re: and I gave up the shebang line too
    ... > James Taylor wrote: ... > warnings. ... It enables warnings in every script, ... would it necessarily work on my version of perl: ...
    (comp.lang.perl.misc)
  • Re: warnings on old Perl
    ... the warnings pragma was introduced with version 5.6.0. ... Even if Windows typically doesn't care about the path to perl on the ... shebang line, possible switches in the shebang line should still make ... that unlike "use warnings;", this enables warnings dynamically, not ...
    (perl.beginners)
  • Re: Suppress "mytime redefined" message from Benchmark?
    ... > Does anyone know of a way to completely suppress this warning? ... The -w switch is dynamically scoped, which means that it enables all ... kinds of warnings also in modules that you use or require. ...
    (comp.lang.perl.misc)