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>2020-05-07 01:58:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-07 02:00:38 +0300
commit05da8132d8f721fe550bfd0d6553f8bb8d45760f (patch)
treefa5839fddf4c5543673ce706c51b65712a5437e9 /source/blender/blentranslation
parentb0f3a53989ecf042dae729bdac99428c1ec676f7 (diff)
BLT: include a non-executing reference to context in macros
Prevent errors when building without translations.
Diffstat (limited to 'source/blender/blentranslation')
-rw-r--r--source/blender/blentranslation/BLT_translation.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blentranslation/BLT_translation.h b/source/blender/blentranslation/BLT_translation.h
index 5f6ae0a86e9..817b99e8b91 100644
--- a/source/blender/blentranslation/BLT_translation.h
+++ b/source/blender/blentranslation/BLT_translation.h
@@ -65,9 +65,9 @@ bool BLT_lang_is_ime_supported(void);
# define IFACE_(msgid) msgid
# define TIP_(msgid) msgid
# define DATA_(msgid) msgid
-# define CTX_IFACE_(context, msgid) msgid
-# define CTX_TIP_(context, msgid) msgid
-# define CTX_DATA_(context, msgid) msgid
+# define CTX_IFACE_(context, msgid) ((void)(0 ? (context) : 0), msgid)
+# define CTX_TIP_(context, msgid) ((void)(0 ? (context) : 0), msgid)
+# define CTX_DATA_(context, msgid) ((void)(0 ? (context) : 0), msgid)
#endif
/* Helper macro, when we want to define a same msgid for multiple msgctxt...