Skip to content
Snippets Groups Projects
Commit df5919ab authored by Éric Béchet's avatar Éric Béchet
Browse files

warning hunt...

parent 6042ef50
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,7 @@ void ParseString(const std::string &str, bool inCurrentModelDir)
}
}
#if defined(HAVE_ONELAB)
static std::string getSolverForExtension(const std::string &ext)
{
for(int i = 0; i < NUM_SOLVERS; i++){
......@@ -286,6 +287,7 @@ static std::string getSolverForExtension(const std::string &ext)
return "";
}
static int defineSolver(const std::string &name)
{
for(int i = 0; i < NUM_SOLVERS; i++){
......@@ -295,6 +297,7 @@ static int defineSolver(const std::string &name)
opt_solver_name(NUM_SOLVERS - 1, GMSH_SET|GMSH_GUI, name);
return NUM_SOLVERS - 1;
}
#endif
int MergeFile(const std::string &fileName, bool warnIfMissing, bool setBoundingBox,
bool importPhysicalsInOnelab)
......
......@@ -28,6 +28,8 @@ std::string GMSH_CurvedBndDistPlugin::getHelp() const
return "Plugin(CurvedBndDist) ...";
}
#if defined(HAVE_OPTHOM)
static void addLine(PViewDataList *data, const SVector3 &p0, const SVector3 &p1, double v0, double v1)
{
data->NbSL ++;
......@@ -69,7 +71,6 @@ static void addVP(PViewDataList *data, const SVector3 p0, SVector3 v)
}
*/
#if defined(HAVE_OPTHOM)
#include <limits>
static void drawElementDist(PViewDataList *data, GEdge *edge,
......
......@@ -239,7 +239,9 @@ namespace gmm {
g++ can issue a warning at each usage of a function declared with this special attribute
(also works with typedefs and variable declarations)
*/
# define IS_DEPRECATED __attribute__ ((__deprecated__))
//# define IS_DEPRECATED __attribute__ ((__deprecated__))
// annoying : just including .h files e.g. gmm_precond_ildlt.h generates lots of useless warnings with new 4.6+ gcc.
# define IS_DEPRECATED
/*
the specified function is inlined at any optimization level
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment