mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
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; ~~~~~~ ^~~
This commit is contained in:
parent
6cf2d92b0f
commit
eb47b1021f
1 changed files with 2 additions and 3 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue