Change in osmo-pcu[master]: pdch_ul_controller: Fix compiler warning on gcc-10.2

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Mar 20 15:19:19 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/23427 )


Change subject: pdch_ul_controller: Fix compiler warning on gcc-10.2
......................................................................

pdch_ul_controller: Fix compiler warning on gcc-10.2

pdch_ul_controller.c: In function ‘pdch_ulc_release_tbf’:
pdch_ul_controller.c:217:7: error: ‘item_tbf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  217 |    if (item_tbf != tbf)
      |       ^

Change-Id: I42120fdf23753945ebc16bb5469d9fd253c3da37
---
M src/pdch_ul_controller.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/27/23427/1

diff --git a/src/pdch_ul_controller.c b/src/pdch_ul_controller.c
index 173fd8f..cd705d0 100644
--- a/src/pdch_ul_controller.c
+++ b/src/pdch_ul_controller.c
@@ -213,6 +213,8 @@
 			case PDCH_ULC_NODE_TBF_USF:
 				item_tbf = (struct gprs_rlcmac_tbf *)item->tbf_usf.ul_tbf;
 				break;
+			default:
+				OSMO_ASSERT(0);
 			}
 			if (item_tbf != tbf)
 				continue;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/23427
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I42120fdf23753945ebc16bb5469d9fd253c3da37
Gerrit-Change-Number: 23427
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210320/3a3a1ebe/attachment.htm>


More information about the gerrit-log mailing list