aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-18 14:15:16 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-06-23 10:21:54 +0200
commit29b7d53239e59c1b7db506ca9adada7e0a689b56 (patch)
tree20c551c7d446a9b1d00632fbd92939dbc9d57ab5
parent399a6f09ff051988e2e840185ad1f7f5b8a2adce (diff)
gsm0411_utils.c: Fix compilation warnings
gsm0411_utils.c:102:2: warning: #warning find a portable way to obtain timezone offset [-Wcpp] #warning find a portable way to obtain timezone offset gsm0411_utils.c: In function 'gsm338_get_sms_alphabet': gsm0411_utils.c:260:4: warning: large integer implicitly truncated to unsigned type [-Woverflow] return 0xffffffff; Change-Id: I1d6cb31f38721f79e2cf93f9b8e4776f3720aa07
-rw-r--r--src/gsm/gsm0411_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/gsm0411_utils.c b/src/gsm/gsm0411_utils.c
index 7c7164c9..1d3ef49f 100644
--- a/src/gsm/gsm0411_utils.c
+++ b/src/gsm/gsm0411_utils.c
@@ -100,7 +100,7 @@ void gsm340_gen_scts(uint8_t *scts, time_t time)
#ifdef HAVE_TM_GMTOFF_IN_TM
*scts++ = gsm411_bcdify(tm->tm_gmtoff/(60*15));
#else
-#warning find a portable way to obtain timezone offset
+#pragma message ("find a portable way to obtain timezone offset")
*scts++ = 0;
#endif
}
@@ -258,7 +258,7 @@ enum sms_alphabet gsm338_get_sms_alphabet(uint8_t dcs)
if (cgbits & 2) {
LOGP(DLSMS, LOGL_NOTICE,
"Compressed SMS not supported yet\n");
- return 0xffffffff;
+ return -1;
}
switch ((dcs >> 2)&0x03) {