Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-18 22:37:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-18 22:37:59 +0400
commitb38870ce25a99037d7b9836a4f5a1133043e01f7 (patch)
tree8d902f43ad1a8d7695ac118a4e4651ed9829cb7c /source/blender/blenkernel/intern/node.c
parent25fa2eedc48da871f5b42b95520fd1439a9116b1 (diff)
quiet warning about writing to deprecated member with gcc.
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r--source/blender/blenkernel/intern/node.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 94feaed022f..c03e7bc7eac 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -2005,8 +2005,19 @@ static bNodeSocket *make_socket_template(bNodeTree *ntree, int in_out,
* Node sockets generally use the identifier string instead now,
* but reconstructing own_index in writefile.c would require parsing the identifier string.
*/
+
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
sock->own_index = own_index;
+
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
#endif
+
+#endif /* USE_NODE_COMPAT_CUSTOMNODES */
sock->limit = (in_out == SOCK_IN ? 1 : 0xFFF);