diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-07 01:58:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-07 02:00:38 +0300 |
commit | 05da8132d8f721fe550bfd0d6553f8bb8d45760f (patch) | |
tree | fa5839fddf4c5543673ce706c51b65712a5437e9 /source/blender/blentranslation/BLT_translation.h | |
parent | b0f3a53989ecf042dae729bdac99428c1ec676f7 (diff) |
BLT: include a non-executing reference to context in macros
Prevent errors when building without translations.
Diffstat (limited to 'source/blender/blentranslation/BLT_translation.h')
-rw-r--r-- | source/blender/blentranslation/BLT_translation.h | 6 |
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... |