c1dd952eb5
Used by the sagemath stack OBS-URL: https://build.opensuse.org/request/show/85112 OBS-URL: https://build.opensuse.org/package/show/science/gfan?expand=0&rev=1
68 lines
1.8 KiB
Diff
68 lines
1.8 KiB
Diff
From: Jan Engelhardt <jengelh@medozas.de>
|
|
Date: 2011-09-27 04:14:22.744016953 +0200
|
|
Upstream: ?
|
|
|
|
Fix things like:
|
|
|
|
gfanlib_vector.h:291:7: warning: no return statement in function
|
|
returning non-void [-Wreturn-type]
|
|
app_tropicalintersection.cpp:45:2: warning: control reaches end
|
|
of non-void function [-Wreturn-type]
|
|
|
|
---
|
|
app_fancoarsening.cpp | 2 ++
|
|
app_tropicalintersection.cpp | 1 +
|
|
gfanlib_vector.h | 1 +
|
|
gfanlib_zcone.cpp | 1 +
|
|
4 files changed, 5 insertions(+)
|
|
|
|
Index: gfan0.5/app_fancoarsening.cpp
|
|
===================================================================
|
|
--- gfan0.5.orig/app_fancoarsening.cpp
|
|
+++ gfan0.5/app_fancoarsening.cpp
|
|
@@ -38,6 +38,8 @@ public:
|
|
|
|
int i=0;
|
|
|
|
+ /* unused function */
|
|
+ return IntegerVectorList();
|
|
}
|
|
|
|
const char *helpText()
|
|
Index: gfan0.5/app_tropicalintersection.cpp
|
|
===================================================================
|
|
--- gfan0.5.orig/app_tropicalintersection.cpp
|
|
+++ gfan0.5/app_tropicalintersection.cpp
|
|
@@ -42,6 +42,7 @@ public:
|
|
AsciiPrinter(Stdout)<<"The following vector is in intersection, but initial ideal contains a monomial:\n"<<w;
|
|
assert(0);
|
|
}
|
|
+ return true;
|
|
}
|
|
};
|
|
|
|
Index: gfan0.5/gfanlib_vector.h
|
|
===================================================================
|
|
--- gfan0.5.orig/gfanlib_vector.h
|
|
+++ gfan0.5/gfanlib_vector.h
|
|
@@ -288,6 +288,7 @@ public:
|
|
f<<*i;
|
|
}
|
|
f<<")";
|
|
+ return f;
|
|
}
|
|
typ gcd()const
|
|
{
|
|
Index: gfan0.5/gfanlib_zcone.cpp
|
|
===================================================================
|
|
--- gfan0.5.orig/gfanlib_zcone.cpp
|
|
+++ gfan0.5/gfanlib_zcone.cpp
|
|
@@ -726,6 +726,7 @@ std::ostream &operator<<(std::ostream &f
|
|
f<<c.inequalities<<std::endl;
|
|
f<<"Equations:"<<std::endl;
|
|
f<<c.equations<<std::endl;
|
|
+ return f;
|
|
}
|
|
|
|
|