osmo-bsc[master]: bsc_vty: Fix uninitialized var false positive on gcc 7.3.1

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/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Mar 26 17:11:45 UTC 2018


Patch Set 1:

/home/pespin/dev/sysmocom/git/osmo-bsc/src/libbsc/bsc_vty.c: In function ‘lchan_summary’:
/home/pespin/dev/sysmocom/git/osmo-bsc/src/libbsc/bsc_vty.c:1464:9: error: ‘ts’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   lchan = &ts->lchan[lchan_nr];
   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pespin/dev/sysmocom/git/osmo-bsc/src/libbsc/bsc_vty.c:1452:6: error: ‘trx’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   ts = &trx->ts[ts_nr];
   ~~~^~~~~~~~~~~~~~~~~
/home/pespin/dev/sysmocom/git/osmo-bsc/src/libbsc/bsc_vty.c:1440:7: error: ‘bts’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   trx = gsm_bts_trx_num(bts, trx_nr);
   ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
To view, visit https://gerrit.osmocom.org/7509
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: If2b315d76081f7ef5f2faf07c502f20196ba6a09
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-HasComments: No



More information about the gerrit-log mailing list