Bug 921 - Inconsistent declaration of class/struct Object in object.h
Inconsistent declaration of class/struct Object in object.h
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
ns-3-dev
All All
: P5 trivial
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-27 02:04 EDT by Quincy Tse
Modified: 2010-05-27 02:35 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (368 bytes, patch)
2010-05-27 02:06 EDT, Quincy Tse
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Quincy Tse 2010-05-27 02:04:42 EDT
Mismatched declaration fails static analysis (clang). No real problem functionally.

In file included from ../src/core/object.cc:22:
../src/core/object.h:232:10: error: class 'ObjectDeleter' was previously
      declared as a struct [-Wmismatched-tags]
  friend class ObjectDeleter;
         ^~~~~
         struct
../src/core/object.h:42:8: note: previous use is here
struct ObjectDeleter
       ^
1 error generated.
Comment 1 Quincy Tse 2010-05-27 02:06:23 EDT
Created attachment 884 [details]
Proposed patch
Comment 2 Mathieu Lacage 2010-05-27 02:34:57 EDT
applied: changeset a1e00acc5986