File scilab-no-return-in-non-void.patch of Package scilab
Index: scilab-6.0.1/modules/ast/includes/exps/opexp.hxx
===================================================================
--- scilab-6.0.1.orig/modules/ast/includes/exps/opexp.hxx
+++ scilab-6.0.1/modules/ast/includes/exps/opexp.hxx
@@ -254,6 +254,7 @@ public:
case unknown:
return L"unknown";
}
+ return L"\0";
}
Index: scilab-6.0.1/modules/ast/src/cpp/analysis/ConstraintManager.cpp
===================================================================
--- scilab-6.0.1.orig/modules/ast/src/cpp/analysis/ConstraintManager.cpp
+++ scilab-6.0.1/modules/ast/src/cpp/analysis/ConstraintManager.cpp
@@ -96,6 +96,7 @@ bool ConstraintManager::check(const MPol
}
}
}
+ return false;
}
bool ConstraintManager::check(Kind kind, const std::vector<GVN::Value *> & values)
Index: scilab-6.0.1/modules/ast/src/cpp/analysis/InferenceConstraints.cpp
===================================================================
--- scilab-6.0.1.orig/modules/ast/src/cpp/analysis/InferenceConstraints.cpp
+++ scilab-6.0.1/modules/ast/src/cpp/analysis/InferenceConstraints.cpp
@@ -187,6 +187,7 @@ InferenceConstraint::Result MPolyConstra
}
}
}
+ return Result::RESULT_DUNNO;
}
MPolyConstraintSet MPolyConstraint::getMPConstraints(const std::vector<GVN::Value *> & values) const
Index: scilab-6.0.1/modules/core/src/fortran/clunit.f
===================================================================
--- scilab-6.0.1.orig/modules/core/src/fortran/clunit.f
+++ scilab-6.0.1/modules/core/src/fortran/clunit.f
@@ -61,6 +61,7 @@ c
character*800 nomfic
double precision res
err = 0
+ clunit = err
c
c ----------
c close file