Skip to content

Commit f3feea5

Browse files
committed
Refactor: add unreachable code suppression, adjust inline variable syntax, and remove unused whitespace
1 parent 2df2658 commit f3feea5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ElementsExamples/src/program/AnotherSimpleProgram.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class AnotherSimpleProgram final : public SimpleProgram {
5757

5858
throw Exception("This is an example exception.");
5959

60+
// ReSharper disable once CppDFAUnreachableCode
6061
return ExitCode::OK;
6162
}
6263
};

ElementsExamples/tests/src/Boost/ClassExample_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "ElementsExamples/ClassExample.h" // for ClassExample
2323

24-
#include <string> // for allocator, string
24+
#include <string> // for allocator, string
2525

2626
#include <boost/test/unit_test.hpp>
2727

ElementsKernel/src/Lib/ModuleInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ vector<Path::Item> linkedModulePaths() {
202202
string pathname;
203203
unsigned inode;
204204
std::istringstream iss(line);
205-
if (string address ;not(iss >> address >> perms >> offset >> dev >> inode >> pathname)) {
205+
if (string address; not(iss >> address >> perms >> offset >> dev >> inode >> pathname)) {
206206
continue;
207207
}
208208
if (perms == "r-xp" and std::filesystem::exists(pathname)) {

0 commit comments

Comments
 (0)