From dbade9f054efe783b74f6de1052da4f6964e984a Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Fri, 25 Jul 2025 16:37:01 +0300 Subject: www/nift: Fix build - Fix build: In file included from Expr.cpp:1: In file included from ./Expr.h:8: ./exprtk/exprtk.h:6343:49: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 6343 | expression_node::ndb_t::template collect(branch_, node_delete_list); | ^ Upstream pull request: https://github.com/nifty-site-manager/nsm/pull/38 - Fix bug: nsm.cpp:1455:20: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare] 1455 | if(noParams < 2 && noParams > 5) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ 1 warning generated. Upstream pull request: https://github.com/nifty-site-manager/nsm/pull/39 - Make the choice of Lua implementation more intuitive. - Run the strip command once for all binaries. PR: 288379 MFH: 2025Q3 Co-authored-by: Vladimir Druzenko --- www/nift/files/patch-nsm.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www/nift/files/patch-nsm.cpp (limited to 'www/nift/files/patch-nsm.cpp') diff --git a/www/nift/files/patch-nsm.cpp b/www/nift/files/patch-nsm.cpp new file mode 100644 index 000000000000..63cf40647dae --- /dev/null +++ b/www/nift/files/patch-nsm.cpp @@ -0,0 +1,11 @@ +--- nsm.cpp.orig 2024-01-13 12:54:06 UTC ++++ nsm.cpp +@@ -1452,7 +1452,7 @@ int main(int argc, const char* argv[]) + else if(cmd == "watch") + { + //ensures correct number of parameters given +- if(noParams < 2 && noParams > 5) ++ if(noParams < 2 || noParams > 5) + return parError(noParams, argv, "2-5"); + + WatchList wl; -- cgit v1.2.3