mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
validate: fix -Werror=unused-function with clang
[3623/4053] Compiling C object 'subprojects/gst-devtools/validate/plugins/flow/697521d@@gstvalidateflow@sha/gstvalidateflow.c.o'. ../subprojects/gst-devtools/validate/plugins/flow/gstvalidateflow.c:85:1: warning: unused function 'VALIDATE_IS_FLOW_OVERRIDE' [-Wunused-function] G_DECLARE_FINAL_TYPE (ValidateFlowOverride, validate_flow_override, ^ /usr/include/glib-2.0/gobject/gtype.h:1407:26: note: expanded from macro 'G_DECLARE_FINAL_TYPE' static inline gboolean MODULE##_IS_##OBJ_NAME (gpointer ptr) { \ ^ <scratch space>:129:1: note: expanded from here VALIDATE_IS_FLOW_OVERRIDE ^
This commit is contained in:
parent
cca6ae3fdb
commit
9249f60b70
2 changed files with 36 additions and 2 deletions
|
@ -37,6 +37,8 @@
|
|||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "gstvalidateflow.h"
|
||||
|
||||
#define VALIDATE_FLOW_MISMATCH g_quark_from_static_string ("validateflow::mismatch")
|
||||
#define VALIDATE_FLOW_NOT_ATTACHED g_quark_from_static_string ("validateflow::not-attached")
|
||||
|
||||
|
@ -82,8 +84,6 @@ static void runner_stopping (GstValidateRunner * runner,
|
|||
ValidateFlowOverride * flow);
|
||||
|
||||
#define VALIDATE_TYPE_FLOW_OVERRIDE validate_flow_override_get_type ()
|
||||
G_DECLARE_FINAL_TYPE (ValidateFlowOverride, validate_flow_override,
|
||||
VALIDATE, FLOW_OVERRIDE, GstValidateOverride);
|
||||
G_DEFINE_TYPE (ValidateFlowOverride, validate_flow_override,
|
||||
GST_TYPE_VALIDATE_OVERRIDE);
|
||||
|
||||
|
|
34
validate/plugins/flow/gstvalidateflow.h
Normal file
34
validate/plugins/flow/gstvalidateflow.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* GStreamer
|
||||
*
|
||||
* Copyright (C) 2018-2019 Igalia S.L.
|
||||
* Copyright (C) 2018 Metrological Group B.V.
|
||||
* Author: Alicia Boya García <aboya@igalia.com>
|
||||
*
|
||||
* gstvalidateflow.c: A plugin to record streams and match them to
|
||||
* expectation files.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include "../../gst/validate/validate.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE (ValidateFlowOverride, validate_flow_override,
|
||||
VALIDATE, FLOW_OVERRIDE, GstValidateOverride);
|
||||
|
||||
G_END_DECLS
|
Loading…
Reference in a new issue