diff options
author | Mamadou Babaei <info@babaei.net> | 2025-07-25 16:37:01 +0300 |
---|---|---|
committer | Vladimir Druzenko <vvd@FreeBSD.org> | 2025-07-25 16:37:01 +0300 |
commit | dbade9f054efe783b74f6de1052da4f6964e984a (patch) | |
tree | d1ba08432f473da24fc968db0378d5c80bdbd082 /www/nift/files/patch-nsm.cpp | |
parent | games/anki: Update to 25.07.4 (diff) |
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<T>::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 <vvd@FreeBSD.org>
Diffstat (limited to 'www/nift/files/patch-nsm.cpp')
-rw-r--r-- | www/nift/files/patch-nsm.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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; |