forked from pool/SHERPA-MC
Add SHERPA-MC-ignore-distutils-deprecation-warning.patch: Disable deprecation warning when importing distutils from python3.10, so that autotools checks can still work. OBS-URL: https://build.opensuse.org/request/show/984617 OBS-URL: https://build.opensuse.org/package/show/science/SHERPA-MC?expand=0&rev=45
25 lines
835 B
Diff
25 lines
835 B
Diff
Index: SHERPA-MC-2.2.12/SHERPA/Tools/Variations.C
|
|
===================================================================
|
|
--- SHERPA-MC-2.2.12.orig/SHERPA/Tools/Variations.C
|
|
+++ SHERPA-MC-2.2.12/SHERPA/Tools/Variations.C
|
|
@@ -657,6 +657,7 @@ namespace SHERPA {
|
|
case Variations_Type::sudakov:
|
|
return s << "Sudakov";
|
|
}
|
|
+ return s << "";
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& s, const Variation_Weights& weights)
|
|
Index: SHERPA-MC-2.2.12/MODEL/Main/Color_Function.C
|
|
===================================================================
|
|
--- SHERPA-MC-2.2.12.orig/MODEL/Main/Color_Function.C
|
|
+++ SHERPA-MC-2.2.12/MODEL/Main/Color_Function.C
|
|
@@ -63,6 +63,7 @@ std::string Color_Function::String() con
|
|
case cf::None:
|
|
case cf::Unknown: return "1";
|
|
}
|
|
+ return "0";
|
|
}
|
|
|
|
Color_Function::~Color_Function() {
|