Warning suppression in li_std_vector_extra testcase for clang

This commit is contained in:
William S Fulton 2015-02-03 19:39:32 +00:00
commit 5c1558917b

View file

@ -12,6 +12,17 @@
#include <algorithm>
#include <functional>
#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 {