Remove some warnings from tests
commit4015813336b620f1642d630963327bf484150648
authorMark Wielaard <mark@klomp.org>
Sun, 10 Oct 2021 13:56:50 +0000 (10 15:56 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 10 Oct 2021 13:56:50 +0000 (10 15:56 +0200)
tree049c6d04180ae46adfa6c7fd55d56f508c957186
parentd187106a76381fbca34d57879eb45fc3f88c41d2
Remove some warnings from tests

Various tests do things which we want to detect at runtime, like
ignoring the result of malloc or doing a deliberate impossibly large
allocation or operations that would result in overflowing or
truncated strings, that generate a warning from gcc.

In once case, mq_setattr called with new and old attrs overlapping,
this was explicitly fixed, in others -Wno-foobar was added to silence
the warning. This is safe even for older gcc, since a compiler will
ignore any -Wno-foobar they don't know about - since they do know they
won't warn for foobar.
dhat/tests/Makefile.am
massif/tests/Makefile.am
memcheck/tests/Makefile.am
none/tests/mq.c