From f7eca27c1b5b447a72c7f3369162af7300d53e9f Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 22 Feb 2011 20:17:54 +0000 Subject: [PATCH] # fix gcc warning in export API (deleting void* is undefined) git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@906 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- include/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/export.h b/include/export.h index 35d6735fb..86b9d3d29 100644 --- a/include/export.h +++ b/include/export.h @@ -107,7 +107,7 @@ struct aiExportDataBlob /// Default constructor aiExportDataBlob() { size = 0; data = NULL; } /// Releases the data - ~aiExportDataBlob() { delete data; } + ~aiExportDataBlob() { delete static_cast( data ); } #endif // __cplusplus };