Skip to content

Commit 36abf57

Browse files
committed
Fix clang warnings
1 parent 6c5fb9b commit 36abf57

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

cmake/modules/clang.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wno-documentation-unknown-comm
99
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wno-exit-time-destructors")
1010
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wno-global-constructors")
1111
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wno-missing-braces")
12+
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wno-unsafe-buffer-usage")
1213
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wrange-loop-analysis")
1314
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Wmove")
1415
tfel_enable_cxx_compiler_flag(COMPILER_WARNINGS "Winfinite-recursion")

src/BehaviourDataView.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ namespace mgis::behaviour {
2727
print_markdown(os, b, d.s1, l + 1);
2828
} // end of print_markdown
2929

30-
} // end of namespace mgis::behaviour
30+
} // end of namespace mgis::behaviour

src/BehaviourDescription.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ namespace mgis::behaviour {
267267
break;
268268
default:
269269
raise("unsupported behaviour type");
270-
};
270+
}
271271
// behaviour symmetry
272272
d.symmetry = lm.getBehaviourSymmetry(l, b) == 0
273273
? BehaviourDescription::ISOTROPIC

src/BehaviourIntegrationFailureAnalyser.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace mgis::behaviour::debug {
2222
BehaviourIntegrationFailureAnalyser::
2323
~BehaviourIntegrationFailureAnalyser() noexcept = default;
2424

25-
std::function<
25+
static std::function<
2626
std::string(std::string_view, std::string_view, std::string_view)>&
2727
getBehaviourIntegrationFailureAnalysisFileNameGenerator() {
2828
static std::function<std::string(std::string_view, std::string_view,
@@ -59,7 +59,7 @@ namespace mgis::behaviour::debug {
5959
if (f) {
6060
print_markdown(f, b, d, 0);
6161
}
62-
};
62+
}
6363
void analyse(const Behaviour& b,
6464
const BehaviourDataView& d) const noexcept override {
6565
// write inputs to output file
@@ -69,7 +69,7 @@ namespace mgis::behaviour::debug {
6969
if (f) {
7070
print_markdown(f, b, d, 0);
7171
}
72-
};
72+
}
7373
bool shallCopyBehaviourDataBeforeIntegration() const noexcept override {
7474
return true;
7575
}

0 commit comments

Comments
 (0)