Skip to content

util: Dereference the correct field

Matt Turner requested to merge mattst88/rarian:fix-warning into main

Fixes the following warning:

rarian-reg-full.c: In function ‘rrn_reg_parse_file_full’:
rarian-reg-full.c:144:55: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘RrnListEntry *’ {aka ‘struct _RrnListEntry *’} [-Wformat=]
  144 |             fprintf(stderr, "Error: Orphaned section %s not added.\n",
      |                                                      ~^
      |                                                       |
      |                                                       char *
  145 |                     sect->name);
      |                     ~~~~~~~~~~
      |                         |
      |                         RrnListEntry * {aka struct _RrnListEntry *}

Merge request reports

Loading