common/m4/gst-error.m4: Disable warning of statement not reached on Forte.

Original commit message from CVS:
2006-10-09  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

Patch by: Josep Torre Valles <josep@fluendo.com>

* common/m4/gst-error.m4:
Disable warning of statement not reached on Forte.
* gst/gstmessage.h:
Fix warning on Forte (value doesn't fit on enumeration).
* libs/gst/base/gstbasesink.c: (gst_base_sink_chain_unlocked):
Fix warning on Forte (value doesn't fit on enumeration).
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
DEBUG macro says it takes minimum of 2 args and so Forte
complains about the use with just 1 arg.
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
* plugins/elements/gstfilesink.c:
* plugins/elements/gstfilesrc.c:
Use correct return type for the uri handler implementations.

All these fix warnings in Forte.  Fixes bug #360860.
This commit is contained in:
Josep Torre Valles 2006-10-09 09:32:29 +00:00 committed by Zaheer Abbas Merali
parent 0ca5590961
commit 2f32e21d72
9 changed files with 30 additions and 9 deletions

View file

@ -1,3 +1,24 @@
2006-10-09 Zaheer Abbas Merali <zaheerabbas at merali dot org>
Patch by: Josep Torre Valles <josep@fluendo.com>
* common/m4/gst-error.m4:
Disable warning of statement not reached on Forte.
* gst/gstmessage.h:
Fix warning on Forte (value doesn't fit on enumeration).
* libs/gst/base/gstbasesink.c: (gst_base_sink_chain_unlocked):
Fix warning on Forte (value doesn't fit on enumeration).
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
DEBUG macro says it takes minimum of 2 args and so Forte
complains about the use with just 1 arg.
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
* plugins/elements/gstfilesink.c:
* plugins/elements/gstfilesrc.c:
Use correct return type for the uri handler implementations.
All these fix warnings in Forte. Fixes bug #360860.
2006-10-08 Tim-Philipp Müller <tim at centricular dot net> 2006-10-08 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstelement.h: * gst/gstelement.h:

2
common

@ -1 +1 @@
Subproject commit 83b08805d0c109b6dbdcfca0a8b9659b1c556480 Subproject commit efcacf2625da231fbee99b68e0f5db6816cf6fad

View file

@ -84,7 +84,7 @@ typedef enum
GST_MESSAGE_SEGMENT_START = (1 << 16), GST_MESSAGE_SEGMENT_START = (1 << 16),
GST_MESSAGE_SEGMENT_DONE = (1 << 17), GST_MESSAGE_SEGMENT_DONE = (1 << 17),
GST_MESSAGE_DURATION = (1 << 18), GST_MESSAGE_DURATION = (1 << 18),
GST_MESSAGE_ANY = ~0 GST_MESSAGE_ANY = G_MAXINT
} GstMessageType; } GstMessageType;
#include <gst/gstminiobject.h> #include <gst/gstminiobject.h>

View file

@ -1913,7 +1913,7 @@ gst_base_sink_chain_unlocked (GstBaseSink * basesink, GstPad * pad,
GstBuffer * buf) GstBuffer * buf)
{ {
GstFlowReturn result; GstFlowReturn result;
GstClockTime start = -1, end = -1; GstClockTime start = GST_CLOCK_TIME_NONE, end = GST_CLOCK_TIME_NONE;
GstSegment *clip_segment; GstSegment *clip_segment;
if (G_UNLIKELY (basesink->flushing)) if (G_UNLIKELY (basesink->flushing))

View file

@ -407,7 +407,7 @@ gst_net_client_clock_thread (gpointer data)
continue; continue;
} else if (ret == 0) { } else if (ret == 0) {
/* timed out, let's send another packet */ /* timed out, let's send another packet */
DEBUG ("timed out"); DEBUG ("timed out %c", 0x32);
packet = gst_net_time_packet_new (NULL); packet = gst_net_time_packet_new (NULL);
@ -434,7 +434,7 @@ gst_net_client_clock_thread (gpointer data)
if (!packet) if (!packet)
goto receive_error; goto receive_error;
DEBUG ("got packet back"); DEBUG ("got packet back %c", 0x32);
DEBUG ("local_1 = %" GST_TIME_FORMAT, GST_TIME_ARGS (packet->local_time)); DEBUG ("local_1 = %" GST_TIME_FORMAT, GST_TIME_ARGS (packet->local_time));
DEBUG ("remote = %" GST_TIME_FORMAT, GST_TIME_ARGS (packet->remote_time)); DEBUG ("remote = %" GST_TIME_FORMAT, GST_TIME_ARGS (packet->remote_time));
DEBUG ("local_2 = %" GST_TIME_FORMAT, GST_TIME_ARGS (new_local)); DEBUG ("local_2 = %" GST_TIME_FORMAT, GST_TIME_ARGS (new_local));

View file

@ -510,7 +510,7 @@ gst_fd_sink_get_property (GObject * object, guint prop_id, GValue * value,
/*** GSTURIHANDLER INTERFACE *************************************************/ /*** GSTURIHANDLER INTERFACE *************************************************/
static guint static GstURIType
gst_fd_sink_uri_get_type (void) gst_fd_sink_uri_get_type (void)
{ {
return GST_URI_SINK; return GST_URI_SINK;

View file

@ -447,7 +447,7 @@ could_not_stat:
/*** GSTURIHANDLER INTERFACE *************************************************/ /*** GSTURIHANDLER INTERFACE *************************************************/
static guint static GstURIType
gst_fd_src_uri_get_type (void) gst_fd_src_uri_get_type (void)
{ {
return GST_URI_SRC; return GST_URI_SRC;

View file

@ -508,7 +508,7 @@ gst_file_sink_stop (GstBaseSink * basesink)
/*** GSTURIHANDLER INTERFACE *************************************************/ /*** GSTURIHANDLER INTERFACE *************************************************/
static guint static GstURIType
gst_file_sink_uri_get_type (void) gst_file_sink_uri_get_type (void)
{ {
return GST_URI_SINK; return GST_URI_SINK;

View file

@ -1028,7 +1028,7 @@ gst_file_src_stop (GstBaseSrc * basesrc)
/*** GSTURIHANDLER INTERFACE *************************************************/ /*** GSTURIHANDLER INTERFACE *************************************************/
static guint static GstURIType
gst_file_src_uri_get_type (void) gst_file_src_uri_get_type (void)
{ {
return GST_URI_SRC; return GST_URI_SRC;