aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/env_universal_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env_universal_common.h')
-rw-r--r--src/env_universal_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env_universal_common.h b/src/env_universal_common.h
index 203f952b..3428c693 100644
--- a/src/env_universal_common.h
+++ b/src/env_universal_common.h
@@ -168,7 +168,7 @@ public:
};
bool universal_log_enabled();
-#define UNIVERSAL_LOG(x) if (universal_log_enabled()) fprintf(stderr, "UNIVERSAL LOG: %s\n", x)
+#define UNIVERSAL_LOG(x) do { if (universal_log_enabled()) fprintf(stderr, "UNIVERSAL LOG: %s\n", x); } while (0)
/* Environment variable for requesting a particular universal notifier. See fetch_default_strategy_from_environment for names. */
#define UNIVERSAL_NOTIFIER_ENV_NAME "fish_universal_notifier"