From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

Fixed warning in tests/misc-free-perf.cc

Fixed warning in tests/misc-free-perf.cc:70:35: warning: ‘new’ of type ‘queue_t’ {aka ‘ring_spsc<void*, 67108864>’} with extended alignment 64 [-Waligned-new=]
  queue_t* queue2 = new queue_t();
by adding proper compiler option.

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/modules/tests/Makefile b/modules/tests/Makefile
--- a/modules/tests/Makefile
+++ b/modules/tests/Makefile
@@ -125,6 +125,7 @@ tests += testrunner.so
 # Tests with special compilation parameters needed...
 $(out)/tests/tst-mmap.so: COMMON += -Wl,-z,now
 $(out)/tests/tst-elf-permissions.so: COMMON += -Wl,-z,relro
+$(out)/tests/misc-free-perf.so: COMMON += -faligned-new

 # The following tests use special linker trickery which apprarently
 # doesn't work as expected with GOLD linker, so we need to choose BFD.

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to