suggest to suppress warning about passing void value via return statement
ID0001998: **This issue was created automatically from Mantis Issue 1998. Further discussion may take place here.** --- | **Id** | **Project** | **Category** | **View** | **Due Date** | **Updated** | | --- | --- | --- | --- | --- | --- | | ID0001998 | Frama-Clang | Plug-in > clang | public | 2014-11-27 | 2015-02-16 | | | | | | | | | --- | --- | --- | --- | --- | --- | | **Reporter** | Jochen | **Assigned To** | virgile | **Resolution** | open | | **Priority** | normal | **Severity** | feature | **Reproducibility** | always | | **Platform** | frama-c-Neon-20140301+dev-stance | **OS** | - | **OS Version** | xubuntu-cfe13.10 | | **Product Version** | - | **Target Version** | - | **Fixed in Version** | - | ### Description : output for file "165.cpp": Now output intermediate result 165.cpp:4:[kernel] warning: Return statement with a value in function returning void According to Stroustrup, sect.7.3 "Value Return", the code is ok, and can make sense in templates with type parameters, cf. file "165a.cpp". Running "g++ -Wall -pedantic 165.cpp" doesn't give a warning either. ## Attachments - [165.cpp](/uploads/de64441631b47caf183ef875ea08a786/165.cpp) - [165a.cpp](/uploads/e805233d81f78ff5dc0a6e47430d449d/165a.cpp)
issue