Skip to content

qcdm: fix order of calloc() arguments

Lubomir Rintel requested to merge lkundrak/ModemManager:lr/gcc14-calloc into main

GCC 14 is unhappy. Not sure why does this matter, maybe it just does not. Let's silence the warning at the very least:

  libqcdm/src/result.c: In function ‘val_new_string’:
  libqcdm/src/result.c:76:25: warning: ‘calloc’ sizes specified with
    ‘sizeof’ in the earlier argument and not in the later argument
    [-Wcalloc-transposed-args]
     76 |     v = calloc (sizeof (Val), 1);
        |                         ^~~

Merge request reports

Loading