summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorPekka Vuorela <pvuorela@iki.fi>2025-10-30 10:58:37 +0200
committerPekka Vuorela <pvuorela@iki.fi>2025-10-30 16:24:39 +0200
commitfa0bbb4d5745fafdd556573575edff77a308c339 (patch)
treef6d496cea9e2a851cb2079e7c02ff22850085d22 /benchmarks
parent238e637f54484dfaa12dfe690b753c06a365afe0 (diff)
Fix some more compiler warnings
Disclaimer: didn't actually test the example as those are not in good shape, but the migration to non-deprecated API should be straightforward enough: mostly question() having default yes/no, and warning() having ok button is enough to skip explicit button declarations. For minor change not having now "no" as option when there is no question in verifyAccount(). checkMailConflict() removed as unused. Change-Id: I15067e1222264a685ba8c83c50e6ae06d4c51c38 Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: <matti.viljanen@kapsi.fi>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/tst_messageserver/testmalloc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmarks/tst_messageserver/testmalloc.cpp b/benchmarks/tst_messageserver/testmalloc.cpp
index 459bbd33..66c0f5f7 100644
--- a/benchmarks/tst_messageserver/testmalloc.cpp
+++ b/benchmarks/tst_messageserver/testmalloc.cpp
@@ -169,7 +169,7 @@ void TestMallocPrivate::init()
When using other malloc and when running under valgrind, we might get called after
some heap allocation.
*/
- struct mallinfo info = mallinfo();
+ struct mallinfo2 info = mallinfo2();
static TestMallocPrivate testmalloc;
testmalloc.now_usable.storeRelaxed(info.uordblks);
testmalloc.now_overhead.storeRelaxed(0); /* cannot get this figure, but should be close to 0. */
@@ -334,22 +334,22 @@ void* operator new(size_t size)
return ::malloc(size);
}
-void operator delete[](void* p)
+void operator delete[](void* p) noexcept
{
::free(p);
}
-void operator delete[](void* p, size_t /*size*/)
+void operator delete[](void* p, size_t /*size*/) noexcept
{
::free(p);
}
-void operator delete(void* p)
+void operator delete(void* p) noexcept
{
::free(p);
}
-void operator delete(void* p, size_t /*size*/)
+void operator delete(void* p, size_t /*size*/) noexcept
{
::free(p);
}