From 2c8cc1f73249246d183d3e4d1aa84b4a3325f6ef Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sat, 18 Nov 2017 16:49:03 +0200 Subject: [PATCH] BlenderDNA: Silence warning about uninitialized member --- code/BlenderDNA.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/BlenderDNA.h b/code/BlenderDNA.h index 4c7d0fc26..bac8d78bc 100644 --- a/code/BlenderDNA.h +++ b/code/BlenderDNA.h @@ -92,6 +92,12 @@ struct Error : DeadlyImportError { * descendents. It serves as base class for all data structure fields. */ // ------------------------------------------------------------------------------- struct ElemBase { + ElemBase() + : dna_type(nullptr) + { + // empty + } + virtual ~ElemBase() { // empty }