Skip to content

Commit

Permalink
Removed fall through warnings in GCC by marker comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqing committed Jun 28, 2019
1 parent 5983ae6 commit 80e22fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions FEM/matrix_routines.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* \copyright
* Copyright (c) 2018, OpenGeoSys Community (http://www.opengeosys.org)
* Copyright (c) 2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
Expand Down Expand Up @@ -3162,6 +3162,7 @@ void M1Vorkond(int aufgabe, double* x, double* b)
diag -= dim + 1;
} /* i */
} /* Modus iLDU, (zerlegen und) aufloesen */
// fall through
case 3: /* Linkstransformation des Gesamtsystems x <= L(t)*b */
if
VK_Modus(VK_iLDU)
Expand Down Expand Up @@ -3347,7 +3348,7 @@ void M34Vorkond(int aufgabe, double* x, double* b)
u = 0;
o = w->usym;
/* kein break! "Fall through" nach Aufgabe 2 */

// fall through
case 2: /* Linkstransformation x <= L*b */
if (VK_Modus(VK_iLDU)) /* incomplete L(D)U-Zerlegung */
{
Expand Down
7 changes: 5 additions & 2 deletions FEM/rf_random_walk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6694,8 +6694,11 @@ void DATWriteParticleVTPFile(int current_time_step)

for (int i = 0; i <= current_time_step; ++i)
{
sprintf(c_dummy, "%i", i);
istr = c_dummy;
//sprintf(c_dummy, "%i", i);
std::ostringstream ss;
ss << i;
istr = ss.str();

for (std::size_t t = 0; t < time_vector.size(); ++t)
{
m_tim = time_vector[t];
Expand Down

0 comments on commit 80e22fe

Please sign in to comment.