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]
Other format: [Raw text]

Re: volatile semantics


>>>>> "Kai" == Kai Henningsen <kaih@khms.westfalen.de> writes:

 Kai> As a QOI issue, it would be nice if such a situation caused a
 Kai> warning ("ignoring volatile cast ..." or something like that).

 Kai> It's rather dangerous to have the user believe that this worked
 Kai> as intended when it didn't.

Definitely.  We already have warnings for "this doesn't do what you
thought" -- like "statement has no effect" if you type == where = was
intended.  Ignoring volatile is at least as deserving of a warning,
and probably more so, because the bugs created by that action are more
subtle.

	paul


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