Fix build error with GCC 6.1.

This commit is contained in:
Brecht Van Lommel 2016-06-12 21:25:14 +02:00
parent 24d53f79b2
commit cefbe8fe54
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #48648, Very recent buildbot build quits on various scenes when Cycles render starts
Referenced by issue #48653, Animation: 'Paste X-flipped Pose' Does Not Copy Handle Placement
Referenced by issue #48645, Regression: crash in cycles after recent commit
Referenced by issue #48625, Blender cannot interpret Right Click for Wacom Tablet
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ const NodeType *structname::register_type()
#define SOCKET_DEFINE(name, ui_name, default_value, datatype, TYPE, flags, ...) \
{ \
static datatype defval = default_value; \
CHECK_TYPE_PAIR(((T *)1)->name, datatype); \
CHECK_TYPE(((T *)1)->name, datatype); \
type->register_input(ustring(#name), ustring(ui_name), TYPE, SOCKET_OFFSETOF(T, name), &defval, NULL, NULL, flags, ##__VA_ARGS__); \
}