Skip to content

Commit 7e9ce72

Browse files
authored
Fix noexcept warnings by Coverity (#5321)
1 parent e4edbe8 commit 7e9ce72

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Src/Base/AMReX_BLProfiler.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ namespace amrex {
616616
static void Sync(const std::string& name) noexcept;
617617
static void Sync(const char* name) noexcept;
618618

619-
static void InitParams() noexcept;
619+
static void InitParams();
620620

621621
static void StartSyncRegion() noexcept;
622622
static void StartSyncRegion(const std::string& name) noexcept;

Src/Base/AMReX_BLProfiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ BLProfileSync::Sync (const char* name) noexcept
17311731
}
17321732

17331733
void
1734-
BLProfileSync::InitParams () noexcept
1734+
BLProfileSync::InitParams ()
17351735
{
17361736
ParmParse pParse("amrex");
17371737
pParse.queryAdd("use_profiler_syncs", BLProfileSync::use_prof_syncs);

Src/Base/AMReX_Geometry.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public:
9696
explicit Geometry (const Box& dom,
9797
const RealBox* rb = nullptr,
9898
int coord = -1,
99-
int const* is_per = nullptr) noexcept;
99+
int const* is_per = nullptr);
100100
/**
101101
* Constructs a fully-defined geometry object that describes the problem domain and coordinate system.
102102
*
@@ -112,7 +112,7 @@ public:
112112
* Default is non-periodic.
113113
*/
114114
Geometry (const Box& dom, const RealBox& rb, int coord,
115-
Array<int,AMREX_SPACEDIM> const& is_per) noexcept;
115+
Array<int,AMREX_SPACEDIM> const& is_per);
116116

117117
~Geometry () = default;
118118
Geometry (const Geometry& rhs) = default;

Src/Base/AMReX_Geometry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ Geometry::Geometry () noexcept
4848
}
4949

5050
Geometry::Geometry (const Box& dom, const RealBox* rb, int coord,
51-
int const* is_per) noexcept
51+
int const* is_per)
5252
{
5353
define(dom,rb,coord,is_per);
5454
}
5555

5656
Geometry::Geometry (const Box& dom, const RealBox& rb, int coord,
57-
Array<int,AMREX_SPACEDIM> const& is_per) noexcept
57+
Array<int,AMREX_SPACEDIM> const& is_per)
5858
{
5959
define(dom,rb,coord,is_per);
6060
}

0 commit comments

Comments
 (0)