All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: "José Antonio Santos Cadenas" <santoscadenas@gmail.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Solve compilation warning usin gcc 4.5.0
Date: Wed, 11 Aug 2010 09:40:44 -0400	[thread overview]
Message-ID: <1281534044.12579.238.camel@localhost.localdomain> (raw)
In-Reply-To: <201008111517.07434.santoscadenas@gmail.com>

Hi Jose,

> I have also experienced more warnings, but I don't know what's the best way to 
> solve it because they are related to gstreamer and I'm not familiar with it. I 
> attach them in case anyone can solve them or help me showing the best way to 
> solve do it.
> 
>   CC     audio/audio_libgstbluetooth_la-gstsbcenc.lo
> audio/gstsbcenc.c:138:1: warning: no previous declaration for 
> 'gst_sbc_enc_get_type'
>   CC     audio/audio_libgstbluetooth_la-gstsbcdec.lo
> audio/gstsbcdec.c:37:1: warning: no previous declaration for 
> 'gst_sbc_dec_get_type'
>   CC     audio/audio_libgstbluetooth_la-gstsbcparse.lo
> audio/gstsbcparse.c:37:1: warning: no previous declaration for 
> 'gst_sbc_parse_get_type'
>   CC     audio/audio_libgstbluetooth_la-gstavdtpsink.lo
> audio/gstavdtpsink.c:82:1: warning: no previous declaration for 
> 'gst_avdtp_sink_get_type'
>   CC     audio/audio_libgstbluetooth_la-gsta2dpsink.lo
> audio/gsta2dpsink.c:50:1: warning: no previous declaration for 
> 'gst_a2dp_sink_get_type'
>   CC     audio/audio_libgstbluetooth_la-gstsbcutil.lo
>   CC     audio/audio_libgstbluetooth_la-gstrtpsbcpay.lo
> audio/gstrtpsbcpay.c:70:1: warning: no previous declaration for 
> 'gst_rtp_sbc_pay_get_type'
>   CC     audio/audio_libgstbluetooth_la-ipc.lo
> 
> 
> Looking to the code, the problem seems to be in this macro:
> GST_BOILERPLATE
> 
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-
> GstUtils.html#GST-BOILERPLATE:CAPS
> 
> As I said I don't have previous experience with gstreamer and I don't know if 
> it is a good idea to declare the "get_type" function previously.

this is GStreamer type generation being utterly stupid. Either way
around it will produce a warning. It added #pragma magic to keep the
warning, but not failing the build. However we might need to turn around
and change that the warning only shows up with old compilers.

Regards

Marcel



      reply	other threads:[~2010-08-11 13:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11  9:09 [PATCH] Solve compilation warning usin gcc 4.5.0 Jose Antonio Santos Cadenas
2010-08-11 12:49 ` Johan Hedberg
2010-08-11 12:55   ` José Antonio Santos Cadenas
2010-08-11 13:06     ` Jose Antonio Santos Cadenas
2010-08-11 13:17       ` Johan Hedberg
2010-08-11 13:17   ` José Antonio Santos Cadenas
2010-08-11 13:40     ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281534044.12579.238.camel@localhost.localdomain \
    --to=marcel@holtmann.org \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=santoscadenas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.