OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001010OMNeT++command line toolspublic2017-05-04 22:412017-12-22 19:59
Assigned To 
Platformx86OSUbuntuOS Version17.04
Product Version5.1 
Target VersionFixed in Version 
Summary0001010: nedtool: the getDisplayString() method in auto-generated messages is not marked as override
DescriptionIf the message definition contains the display string, e.g.,

message Job
    string displayString = "i=msg/package_s,kind";

the *_m.h auto-generated file contains the following method definition

virtual const char * getDisplayString() const;

which triggers the following warning with clang

 warning: 'getDisplayString' overrides a member function but is not marked override'
    virtual const char * getDisplayString() const;
Additional InformationAs a temporary workaround, the warning can be disabled by adding


TagsNo tags attached.
Attached Filespatch file icon override.patch [^] (1,017 bytes) 2017-12-22 19:58 [Show Content]

- Relationships

-  Notes
paolinux (reporter)
2017-12-22 19:58

A cleaner workaround (until this gets properly fixed) is to patch the nedtool to add the override tag when generating the message class. I've attached a quick and dirty patch for the latest release (5.2.1)

- Issue History
Date Modified Username Field Change
2017-05-04 22:41 paolinux New Issue
2017-12-22 19:58 paolinux Note Added: 0001351
2017-12-22 19:58 paolinux File Added: override.patch

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker