[cfe-dev] new warnings
Ted Kremenek
kremenek at apple.com
Thu Sep 25 16:47:58 PDT 2008
On Sep 25, 2008, at 3:33 PM, Mike Stump wrote:
> In file included from DeclGroup.cpp:14:
> /Volumes/mrs5/net/llvm/llvm/tools/clang/lib/AST/../../include/clang/
> AST/DeclGroup.h: In member function ‘clang::Decl**
> clang::DeclGroupRef::begin()’:
> /Volumes/mrs5/net/llvm/llvm/tools/clang/lib/AST/../../include/clang/
> AST/DeclGroup.h:65: warning: dereferencing type-punned pointer will
> break strict-aliasing rules
> /Volumes/mrs5/net/llvm/llvm/tools/clang/lib/AST/../../include/clang/
> AST/DeclGroup.h: In member function ‘clang::Decl**
> clang::DeclGroupRef::end()’:
> /Volumes/mrs5/net/llvm/llvm/tools/clang/lib/AST/../../include/clang/
> AST/DeclGroup.h:73: warning: dereferencing type-punned pointer will
> break strict-aliasing rules
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Thanks Mike,
Any suggestion on how to fix this? We're basically using the field as
a variant, this it is perfectly safe (I believe).
Ted
More information about the cfe-dev
mailing list