summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2016-03-16 13:53:33 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2016-03-18 17:33:23 +0900
commit38a8021d9d7b3f80f312f8426a1aa76580dfb7de (patch)
tree860e7eded67c2ed31ed6d620366ce7fe026bf723
parentd330c3c0ac72dc7d94097942ccef30702f540374 (diff)
downloadlibmm-radio-38a8021d9d7b3f80f312f8426a1aa76580dfb7de.tar.gz
libmm-radio-38a8021d9d7b3f80f312f8426a1aa76580dfb7de.tar.bz2
libmm-radio-38a8021d9d7b3f80f312f8426a1aa76580dfb7de.zip
Change-Id: I831a148d95398302170a23a963ad0b5b58a0d516 Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
-rwxr-xr-xpackaging/libmm-radio.spec2
-rw-r--r--src/mm_radio_priv_emulator.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/packaging/libmm-radio.spec b/packaging/libmm-radio.spec
index 28b3b34..f465009 100755
--- a/packaging/libmm-radio.spec
+++ b/packaging/libmm-radio.spec
@@ -46,7 +46,7 @@ cp %{SOURCE1001} .
#export use_gstreamer_1=1
#CFLAGS=" %{optflags} -Wall -DGST_EXT_TIME_ANALYSIS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" $GSTREAMER_API"; export CFLAGS;
-CFLAGS=" %{optflags} -Wall -DGST_EXT_TIME_ANALYSIS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "; export CFLAGS;
+CFLAGS=" %{optflags} -Wall -DGST_EXT_TIME_ANALYSIS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" -Werror"; export CFLAGS;
%configure \
--enable-emulator \
diff --git a/src/mm_radio_priv_emulator.c b/src/mm_radio_priv_emulator.c
index 4b685f4..1c2c876 100644
--- a/src/mm_radio_priv_emulator.c
+++ b/src/mm_radio_priv_emulator.c
@@ -306,7 +306,7 @@ int _mmradio_realize(mm_radio_t * radio)
return MM_ERROR_NONE;
- error:
+/* error:
if (radio->radio_fd >= 0) {
close(radio->radio_fd);
radio->radio_fd = -1;
@@ -315,6 +315,7 @@ int _mmradio_realize(mm_radio_t * radio)
MMRADIO_LOG_FLEAVE();
return MM_ERROR_RADIO_INTERNAL;
+*/
}
int _mmradio_unrealize(mm_radio_t * radio)
@@ -383,7 +384,6 @@ int _mmradio_destroy(mm_radio_t * radio)
/* unit should be KHz */
int _mmradio_set_frequency(mm_radio_t * radio, int freq)
{
- int ret = 0;
MMRADIO_LOG_FENTER();
MMRADIO_CHECK_INSTANCE(radio);
@@ -420,7 +420,7 @@ int _mmradio_set_frequency(mm_radio_t * radio, int freq)
int _mmradio_get_frequency(mm_radio_t * radio, int *pFreq)
{
- int freq = 0;
+
MMRADIO_LOG_FENTER();
MMRADIO_CHECK_INSTANCE(radio);
@@ -883,7 +883,7 @@ int _mm_radio_get_signal_strength(mm_radio_t * radio, int *value)
void __mmradio_scan_thread(mm_radio_t * radio)
{
- int ret = 0;
+
int prev_freq = 0;
EmultatorIdx = 0;