Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Expr {
- Expr(const UniqueString* ident, long offset, bool deref)
- {
- if (ident == ustr__empty()) {
- Expr(); <<<<====
- } else {
- postfix_ = "";
- ident_ = ident;
- offset_ = offset;
- how_ = deref ? kExprSimpleMem : kExprSimple;
- }
- }
- Expr(string postfix) {
- if (postfix.empty()) {
- Expr(); <<<<====
- } else {
- postfix_ = postfix;
- ident_ = NULL;
- offset_ = 0;
- how_ = kExprPostfix;
- }
- }
- Expr()
- {
- postfix_ = "";
- ident_ = NULL;
- offset_ = 0;
- how_ = kExprInvalid;
- }
- ....
- };
- This suspicious code was found in google-breakpad project by PVS-Studio static code analyzer.
- Warning message is:
- V603 The object was created but it is not being used. If you wish to call constructor, 'this->Expr::Expr(....)' should be used. module.h 146
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Add Comment
Please, Sign In to add comment