Browse Source

osmo-arfcn: Fix false positive in gcc 12.1.0

The pointer is initialized in all its uses, however newer gcc warns
about it:
"""
inlined from ‘main’ at /libosmocore/utils/osmo-arfcn.c:144:16:
/usr/include/bits/stdlib-float.h:27:10: error: ‘param’ may be used uninitialized [-Werror=maybe-uninitialized]
"""

Change-Id: If3eff4ab14a7b2a950386244c9b5f2b9adb32f99
changes/03/28103/1
Pau Espin 2 months ago
parent
commit
7fba76608f
  1. 2
      utils/osmo-arfcn.c

2
utils/osmo-arfcn.c

@ -93,7 +93,7 @@ int main(int argc, char **argv)
{
int arfcn, freq, pcs = 0, uplink = -1;
int opt;
char *param;
char *param = NULL;
enum program_mode mode = MODE_NONE;
while ((opt = getopt(argc, argv, "pa:f:udh")) != -1) {

Loading…
Cancel
Save