From 362d9ff5c62d8634e99ba9f5a0fe0b2a283418c1 Mon Sep 17 00:00:00 2001
From: Guilherme Amadio <amadio@cern.ch>
Date: Tue, 27 Nov 2018 15:17:07 +0100
Subject: [PATCH] Silence warning coming from LLVM due to memcpy into std::pair
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

interpreter/llvm/src/include/llvm/ADT/SmallVector.h:296:13:
  warning: 鈥榲oid* memcpy(void*, const void*, size_t)鈥� writing to an
  object of type 鈥榮truct std::pair<clang::CXXMethodDecl*,
  const clang::FunctionProtoType*>鈥� with no trivial copy-assignment
  use copy-assignment or copy-initialization instead [-Wclass-memaccess]
       memcpy(Dest, I, (E - I) * sizeof(T));
       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
 core/dictgen/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/dictgen/CMakeLists.txt b/core/dictgen/CMakeLists.txt
index c327f2236dc..7cff48f06a0 100644
--- a/core/dictgen/CMakeLists.txt
+++ b/core/dictgen/CMakeLists.txt
@@ -8,6 +8,8 @@
 # These files are linked into rootcling_stage1 and libCling. rootcling accesses
 # them through rootcling_impl.
 
+ROOT_ADD_COMPILE_OPTIONS(-Wno-class-memaccess)
+
 ROOT_GLOB_SOURCES(sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cxx)
 
 ROOT_OBJECT_LIBRARY(Dictgen
-- 
GitLab