Errors reports by clang --analyze in abis_nm.c

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Freyther zecke at selfish.org
Tue Oct 27 09:06:56 UTC 2009


Hey,

the clang C frontend has found some issues in our OpenBSC code. I think we 
will need to have a table for BS11 and one for ipaccess with the shared/speced 
elements being in both tables.


Here is the list of things I can resolve myself right now:


[NM_ATT_IPACC_FREQ_CTRL] =      { TLV_TYPE_FIXED, 2 }
[NM_ATT_IPACC_FREQ_CTRL] =      { TLV_TYPE_TV, },


these vendor specific commands have the same value:

[NM_ATT_IPACC_NS_CFG] =         { TLV_TYPE_TL16V },
[NM_ATT_BS11_BIT_ERR_THESH] =   { TLV_TYPE_FIXED, 2 },


[NM_ATT_IPACC_BSSGP_CFG] =      { TLV_TYPE_TL16V },
[NM_ATT_BS11_BOOT_SW_VERS] =    { TLV_TYPE_TLV },
                                                  ^~~~~~~~~~~~

[NM_ATT_IPACC_RLC_CFG] =        { TLV_TYPE_TL16V },
[NM_ATT_BS11_CCLK_ACCURACY] =   { TLV_TYPE_TV },
                                                  ^~~~~~~~~~~

[NM_ATT_IPACC_ALM_THRESH_LIST]= { TLV_TYPE_TL16V },
[NM_ATT_BS11_CCLK_TYPE] =       { TLV_TYPE_TV },
                                                  ^~~~~~~~~~~

[NM_ATT_IPACC_CODING_SCHEMES] = { TLV_TYPE_TL16V },
[0xa8] =                        { TLV_TYPE_TLV },


[NM_ATT_IPACC_UPTIME] =         { TLV_TYPE_TL16V },
[NM_ATT_BS11_L1_PROT_TYPE] =    { TLV_TYPE_TV },

[NM_ATT_IPACC_RLC_CFG_3] =      { TLV_TYPE_TL16V },
[NM_ATT_BS11_LINE_CFG] =        { TLV_TYPE_TV },


[0x85] =                        { TLV_TYPE_TV },
[NM_ATT_IPACC_STREAM_ID] =      { TLV_TYPE_TV, },





More information about the OpenBSC mailing list