Bug 967927 - Fix Clang build warning in gstreamer. r=eflores

This commit is contained in:
Alex Xu 2014-02-24 10:22:59 -05:00
parent 9e4b8fc70d
commit 0bffff7397
2 changed files with 8 additions and 0 deletions

View File

@ -46,8 +46,12 @@ typedef struct
GstVideoBufferPool pool;
} MozGfxBufferPool;
// working around GTK+ bug https://bugzilla.gnome.org/show_bug.cgi?id=723899
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
G_DEFINE_TYPE(MozGfxMemoryAllocator, moz_gfx_memory_allocator, GST_TYPE_ALLOCATOR);
G_DEFINE_TYPE(MozGfxBufferPool, moz_gfx_buffer_pool, GST_TYPE_VIDEO_BUFFER_POOL);
#pragma clang diagnostic pop
void
moz_gfx_memory_reset(MozGfxMemory *mem)

View File

@ -14,7 +14,11 @@ namespace mozilla {
static GstMozVideoBuffer *gst_moz_video_buffer_copy(GstMozVideoBuffer* self);
static void gst_moz_video_buffer_finalize(GstMozVideoBuffer* self);
// working around GTK+ bug https://bugzilla.gnome.org/show_bug.cgi?id=723899
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
G_DEFINE_TYPE(GstMozVideoBuffer, gst_moz_video_buffer, GST_TYPE_BUFFER);
#pragma clang diagnostic pop
static void
gst_moz_video_buffer_class_init(GstMozVideoBufferClass* klass)