Project

General

Profile

Bug #4462

Fix osmo-iuh compilation warnings

Added by pespin 16 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/20/2020
Due date:
% Done:

0%

Spec Reference:

Description

Today I saw a few new compilation warnings introduced recently (or discovered by new gcc version):

/osmo-iuh/src/hnbap_common.c:84:2: warning: enumeration value ‘Cause_PR_NOTHING’ not handled in switch [-Wswitch]
   84 |  switch (cause->present) {
/osmo-iuh/src/hnbgw_hnbap.c: In function ‘hnbgw_rx_hnb_register_req’:
/osmo-iuh/src/hnbgw_hnbap.c:434:2: warning: ‘gsm48_mcc_mnc_from_bcd’ is deprecated: Use osmo_plmn_from_bcd() instead, to not lose leading zeros in the MNC [-Wdeprecated-declarations]
  434 |  gsm48_mcc_mnc_from_bcd(ies.plmNidentity.buf, &ctx->id.mcc, &ctx->id.mnc);
../include/osmocom/ranap/ranap_ies_defs.h:514: warning: "RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_IUSIGNALLINGCONNECTIONIDENTIFIER_PRESENT" redefined
  514 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_IUSIGNALLINGCONNECTIONIDENTIFIER_PRESENT     (1 << 2)
      |
../include/osmocom/ranap/ranap_ies_defs.h:512: note: this is the location of the previous definition
  512 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_IUSIGNALLINGCONNECTIONIDENTIFIER_PRESENT     (1 << 0)
      |
../include/osmocom/ranap/ranap_ies_defs.h:515: warning: "RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT" redefined
  515 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT                          (1 << 3)
      |
../include/osmocom/ranap/ranap_ies_defs.h:513: note: this is the location of the previous definition
  513 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT                          (1 << 1)
      |
In file included from /osmo-iuh/include/osmocom/ranap/ranap_common.h:592,
                 from /osmo-iuh/src/ranap_common.c:26:
../include/osmocom/ranap/ranap_ies_defs.h:278: warning: "ENHANCEDRELOCATIONCOMPLETEREQUESTIES_RANAP_EXTENDEDRNC_ID_PRESENT" redefined
  278 | #define ENHANCEDRELOCATIONCOMPLETEREQUESTIES_RANAP_EXTENDEDRNC_ID_PRESENT                   (1 << 1)
      |
../include/osmocom/ranap/ranap_ies_defs.h:277: note: this is the location of the previous definition
  277 | #define ENHANCEDRELOCATIONCOMPLETEREQUESTIES_RANAP_EXTENDEDRNC_ID_PRESENT                   (1 << 0)
      |
../include/osmocom/ranap/ranap_ies_defs.h:514: warning: "RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_IUSIGNALLINGCONNECTIONIDENTIFIER_PRESENT" redefined
  514 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_IUSIGNALLINGCONNECTIONIDENTIFIER_PRESENT     (1 << 2)
      |
../include/osmocom/ranap/ranap_ies_defs.h:512: note: this is the location of the previous definition
  512 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_IUSIGNALLINGCONNECTIONIDENTIFIER_PRESENT     (1 << 0)
      |
../include/osmocom/ranap/ranap_ies_defs.h:515: warning: "RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT" redefined
  515 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT                          (1 << 3)
      |
../include/osmocom/ranap/ranap_ies_defs.h:513: note: this is the location of the previous definition
  513 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT                          (1 << 1)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)