From eb47b1021f3359f67d00e39b2344ad11452b68df Mon Sep 17 00:00:00 2001 From: Ramprakash Jelari Date: Fri, 24 Oct 2014 18:41:30 +0530 Subject: [PATCH] validate: Fix compiler warning about implicit enum type conversion gst-validate-reporter.c:119:39: error: implicit conversion from enumeration type 'GstValidateReportingDetails' to different enumeration type 'GstValidateInterceptionReturn' [-Werror,-Wenum-conversion] GstValidateInterceptionReturn ret = GST_VALIDATE_SHOW_UNKNOWN; ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ gst-validate-reporter.c:124:11: error: implicit conversion from enumeration type 'GstValidateReportingDetails' to different enumeration type 'GstValidateInterceptionReturn' [-Werror,-Wenum-conversion] ret = iface->get_reporting_level (reporter); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gst-validate-reporter.c:127:10: error: implicit conversion from enumeration type 'GstValidateInterceptionReturn' to different enumeration type 'GstValidateReportingDetails' [-Werror,-Wenum-conversion] return ret; ~~~~~~ ^~~ --- validate/gst/validate/gst-validate-reporter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/validate/gst/validate/gst-validate-reporter.c b/validate/gst/validate/gst-validate-reporter.c index 4937d83eda..c653752130 100644 --- a/validate/gst/validate/gst-validate-reporter.c +++ b/validate/gst/validate/gst-validate-reporter.c @@ -116,7 +116,7 @@ gst_validate_reporter_intercept_report (GstValidateReporter * reporter, GstValidateReportingDetails gst_validate_reporter_get_reporting_level (GstValidateReporter * reporter) { - GstValidateInterceptionReturn ret = GST_VALIDATE_SHOW_UNKNOWN; + GstValidateReportingDetails ret = GST_VALIDATE_SHOW_UNKNOWN; GstValidateReporterInterface *iface = GST_VALIDATE_REPORTER_GET_INTERFACE (reporter); @@ -173,8 +173,7 @@ gst_validate_report_valist (GstValidateReporter * reporter, if (prev_report) { GstValidateReportingDetails reporter_level = gst_validate_reporter_get_reporting_level (reporter); - GstValidateReportingDetails runner_level = - GST_VALIDATE_SHOW_UNKNOWN; + GstValidateReportingDetails runner_level = GST_VALIDATE_SHOW_UNKNOWN; if (priv->runner) runner_level =