[pim/libksieve] src/ksieveui/autocreatescripts: sievescriptlistbox.cpp - Use std::ignore to fix -Wunused-result

Allen Winter <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 55aa5c1468ea2151f87e19ce77b37d6fe46f8e34 by Allen Winter.
Committed on 28/07/2026 at 15:13.
Pushed by winterz into branch 'master'.

sievescriptlistbox.cpp - Use std::ignore to fix -Wunused-result

Fixes:
```
+ src/ksieveui/autocreatescripts/sievescriptlistbox.cpp:
  -  261:ignoring return value of function declared with 'nodiscard' attribute
```

M  +1    -1    src/ksieveui/autocreatescripts/sievescriptlistbox.cpp

https://invent.kde.org/pim/libksieve/-/commit/55aa5c1468ea2151f87e19ce77b37d6fe46f8e34

diff --git a/src/ksieveui/autocreatescripts/sievescriptlistbox.cpp b/src/ksieveui/autocreatescripts/sievescriptlistbox.cpp
index 0c389cbe..26b0c584 100644
--- a/src/ksieveui/autocreatescripts/sievescriptlistbox.cpp
+++ b/src/ksieveui/autocreatescripts/sievescriptlistbox.cpp
@@ -258,7 +258,7 @@ void SieveScriptListBox::slotNew()
     bool ok;
     const QString newName = QInputDialog::getText(this, i18nc("@title:window", "New Script"), i18n("New script name:"), {}, {}, &ok);
     if (!newName.trimmed().isEmpty() && ok) {
-        createNewScript(newName);
+        std::ignore = createNewScript(newName);
         Q_EMIT valueChanged();
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.