Warning suppression in li_std_vector_extra testcase for clang
This commit is contained in:
parent
a831f39096
commit
5c1558917b
1 changed files with 11 additions and 0 deletions
|
|
@ -12,6 +12,17 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
// Suppress:
|
||||||
|
// warning: destination for this 'memset' call is a pointer to dynamic class
|
||||||
|
// 'Test::B'; vtable pointer will be overwritten [-Wdynamic-class-memaccess]
|
||||||
|
// memset(v_def,0,sizeof(Type));
|
||||||
|
// Better generated code is probably needed though
|
||||||
|
#pragma clang diagnostic ignored "-Wdynamic-class-memaccess"
|
||||||
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue