This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -Wstrict-aliasing in 2.95/6?


Warning rules proposal #2
-------------------------

Criterion for warning about suspicious casts:

      - Any conversion from pointer-to-A to pointer-to-B where
        type-based aliasing determines that A and B do not alias.
        (But conversion to/from `void *' never warns).

      - Any conversion from pointer-to-A to/from a non pointer type.

Too easy?

-- Jamie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]