openbsc.git branch master updated. 0.14.0-39-g3815942

gitosis at osmocom.org gitosis at osmocom.org
Sat May 2 17:56:56 UTC 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The OpenBSC GSM Base Station Controller (+MSC/HLR/SGSN)".

The branch, master has been updated
       via  38159428d2b1e95a2c6fa91775f7b3678aef2f1f (commit)
      from  4a8b938348b9503decd2794b33a71d340fe9414f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cgit.osmocom.org/openbsc/commit/?id=38159428d2b1e95a2c6fa91775f7b3678aef2f1f

commit 38159428d2b1e95a2c6fa91775f7b3678aef2f1f
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Sat May 2 10:02:38 2015 +0200

    mgcp: Fix compiler warning on 64bit builds
    
    ENDPOINT_NUMBER takes the difference of two pointers. On 64bit
    builds the difference is a long and the compiler then complains
    about the usage of abs. We will never have thousands of endpoints
    so silence the warning by casting the ENDPOINT_NUMBER to int.
    
    mgcp_vty.c:1381:34: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of
          type 'int' which may cause truncation of value [-Wabsolute-value]
                            rtp_port = rtp_calculate_port(ENDPOINT_NUMBER(endp),
                                                          ^
    ../../include/openbsc/mgcp_internal.h:206:31: note: expanded from macro 'ENDPOINT_NUMBER'
     #define ENDPOINT_NUMBER(endp) abs(endp - endp->tcfg->endpoints)
                                  ^
    mgcp_vty.c:1381:34: note: use function 'labs' instead

-----------------------------------------------------------------------

Summary of changes:
 openbsc/include/openbsc/mgcp_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The OpenBSC GSM Base Station Controller (+MSC/HLR/SGSN)



More information about the osmocom-commitlog mailing list