diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2022-05-11 14:10:27 +0300 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2022-05-13 06:34:00 +0000 |
commit | f8c8b0d9c599ba070a7abf2698950495200fc467 (patch) | |
tree | 832e24b68ee8d69059129d6c41b28e68da3443d7 /include/osmocom | |
parent | 49dd5cfeebf2426849b22047ea3aea1a91441061 (diff) |
smscb: fix meaningless condition in etws_primary_to_bts()
Found by GCC 12.1.0:
smscb.c: In function 'etws_primary_to_bts':
smscb.c:537:13: warning: the comparison will always evaluate as 'true'
for the address of 'warning_sec_info'
will never be NULL [-Waddress]
537 | if (wrepl->u.emergency.warning_sec_info) {
| ^~~~~
In file included from smscb.c:31:
/usr/local/include/osmocom/gsm/cbsp.h:99:33: note: 'warning_sec_info' declared here
99 | uint8_t warning_sec_info[50];
| ^~~~~~~~~~~~~~~~
Indeed, address of &warning_sec_info[0] is always not NULL.
Change-Id: Id369bb3676ba279bafc234378fbe21dbc7b0614b
Diffstat (limited to 'include/osmocom')
0 files changed, 0 insertions, 0 deletions