mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
d2737e6027
commit
7fba76608f
|
@ -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…
Reference in New Issue