libosmo-sccp/src
Pau Espin 7b4aea4aa6 xua_asp_fsm: Fix gcc false positive warning
As of GCC 11.1.0, it starts printing a warning about uninitialized
variable. It is a false positive since tmode is really only used in the
case where traffic_mode is not zero, in which case tmode is set.

Let's restrict the scope of tmode to fix the issue and also make it
clearer where the variable is used.

"""
In file included from /git/libosmo-sccp/src/xua_asp_fsm.c:25:
/git/libosmo-sccp/src/xua_asp_fsm.c: In function ‘xua_asp_fsm_inactive’:
/git/libosmo-sccp/include/osmocom/sigtran/osmo_ss7.h:274:16: error: ‘tmode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  274 |         return get_value_string(osmo_ss7_as_traffic_mode_vals, mode);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/git/libosmo-sccp/src/xua_asp_fsm.c:476:39: note: ‘tmode’ was declared here
  476 |         enum osmo_ss7_as_traffic_mode tmode;
      |
"""

Change-Id: I4fc38724aba3a3f178ba0b45444e1394db44d039
2022-02-01 16:59:52 +00:00
..
Makefile.am Bump version: 1.4.0.39-484f-dirty → 1.5.0 2021-11-16 14:44:42 +01:00
ipa.c spelling fixes in comments 2021-11-15 18:05:04 +01:00
m3ua.c spelling fixes in comments 2021-11-15 18:05:04 +01:00
mtp_pcap.c treewide: remove FSF address 2021-12-14 12:54:05 +00:00
osmo_ss7.c osmo_ss7_instance_destroy: use for_each_entry_safe 2021-12-21 18:58:20 +01:00
osmo_ss7_hmrt.c stp: Add basic RX/TX rate counters on AS and ASP level 2021-11-15 18:05:01 +01:00
osmo_ss7_vty.c osmo_ss7_vty: add osmo_sccp_addr_by_name_local 2022-02-01 11:08:34 +00:00
sccp.c treewide: remove FSF address 2021-12-14 12:54:05 +00:00
sccp2sua.c sccp: Add minimalistic support for XUDT / XUDTS 2021-10-26 16:27:14 +02:00
sccp_helpers.c add osmo_sccp_addr_to_id_c() 2020-09-23 21:13:18 +02:00
sccp_internal.h xua_snm: Implement handling of DUPU messages 2021-02-10 19:58:38 +01:00
sccp_lbcs.c sccp: Notify users of point code available/unavailable 2021-02-08 18:00:56 +01:00
sccp_sap.c sccp_sap: Fix string for N-PCSTATE primitive 2021-02-07 18:28:48 +00:00
sccp_sclc.c spelling fixes in comments 2021-11-15 18:05:04 +01:00
sccp_scmg.c src/sccp_scmg: fix typo 2021-12-21 18:58:20 +01:00
sccp_scoc.c spelling fixes in comments 2021-11-15 18:05:04 +01:00
sccp_scrc.c spelling fixes in comments 2021-11-15 18:05:04 +01:00
sccp_types.c sccp: Improve logging in sccp_to_xua_opt() 2020-01-17 14:41:53 +01:00
sccp_user.c sccp_user: do not force the role ASP when configured differently 2022-01-26 11:02:02 +01:00
sccp_vty.c vty: add attributes to VTY commands indicating when they apply 2020-10-06 22:50:10 +02:00
ss7_internal.h stp: Add basic RX/TX rate counters on AS and ASP level 2021-11-15 18:05:01 +01:00
sua.c stp: Add basic RX/TX rate counters on AS and ASP level 2021-11-15 18:05:01 +01:00
xua_as_fsm.c xua_as_fsm: Only delete a route for an IPA AS if we created one earlier 2021-04-29 21:10:30 +02:00
xua_as_fsm.h osmo_ss7_vty.c: implement 'active' filter for show_cs7_as_cmd 2019-11-14 22:31:40 +00:00
xua_asp_fsm.c xua_asp_fsm: Fix gcc false positive warning 2022-02-01 16:59:52 +00:00
xua_asp_fsm.h introduce public enum osmo_ss7_asp_role for ASP/SG/IPSP 2019-11-05 20:50:37 +00:00
xua_default_lm_fsm.c xua_default_lm_fsm.c: Fix typo in comment 2022-01-21 10:57:03 +01:00
xua_internal.h xua_snm: Implement handling of DUPU messages 2021-02-10 19:58:38 +01:00
xua_msg.c xua: introduce xua_msg_get_u32p() helper 2021-02-08 18:11:12 +01:00
xua_rkm.c m3ua: reject deregistration of static routing keys 2021-07-23 10:02:16 +02:00
xua_shared.c m3ua: Move find_as_for_asp() to shared xua_find_as_for_asp() 2021-02-08 11:42:30 +01:00
xua_snm.c xua_snm: Implement handling of DUPU messages 2021-02-10 19:58:38 +01:00