summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-07-25 20:27:48 +0100
committerTim-Philipp Müller <tim@centricular.com>2020-07-25 20:29:39 +0100
commit56b745f4f8040f688809571e94366a28c62c82cc (patch)
tree43888678d4e97db3f069cc33060d7d42a8624554
parente2573740381ac9f71c0271488debc02ba2049bd0 (diff)
validate-scenario: reflow #ifdef to work around bogus g-ir-scanner warning
Looks like a scanner bug. The endif comments are the wrong way round too, but that's not it. gst-validate-scenario.c:126: mismatched #endif /* G_HAVE_GNUC_VARARGS */ Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/213>
-rw-r--r--validate/gst/validate/gst-validate-scenario.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c
index 5c1196d..2f45879 100644
--- a/validate/gst/validate/gst-validate-scenario.c
+++ b/validate/gst/validate/gst-validate-scenario.c
@@ -109,8 +109,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_validate_scenario_debug);
} \
} \
G_STMT_END
-#else /* G_HAVE_GNUC_VARARGS */
-#ifdef G_HAVE_GNUC_VARARGS
+#elif defined(G_HAVE_GNUC_VARARGS)
#define REPORT_UNLESS(condition, errpoint, args...) \
G_STMT_START { \
if (!(condition)) { \
@@ -121,8 +120,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_validate_scenario_debug);
} \
} \
G_STMT_END
-#endif /* G_HAVE_ISO_VARARGS */
-#endif /* G_HAVE_GNUC_VARARGS */
+#endif
enum
{