Anonymous | Login | 2022-08-10 04:53 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0001010 | OMNeT++ | command line tools | public | 2017-05-04 22:41 | 2017-12-22 19:59 | ||||||||
Reporter | paolinux | ||||||||||||
Assigned To | |||||||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Platform | x86 | OS | Ubuntu | OS Version | 17.04 | ||||||||
Product Version | 5.1 | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0001010: nedtool: the getDisplayString() method in auto-generated messages is not marked as override | ||||||||||||
Description | If 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' [-Winconsistent-missing-override] virtual const char * getDisplayString() const; | ||||||||||||
Additional Information | As a temporary workaround, the warning can be disabled by adding -Wno-inconsistent-missing-override in CFLAGS_DEBUG and CFLAGS_RELEASE in Makefile.inc | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | ![]() | ||||||||||||
![]() |
|
(0001351) 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) |
![]() |
|||
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 |