]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound.c
lib: Fix gcc 9 warning -> error issue
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 31 May 2019 12:36:37 +0000 (08:36 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 31 May 2019 12:37:34 +0000 (08:37 -0400)
commit1b3f6ff1f6851efca4aa22fb7bbf3c6717215833
tree7284d02443e0b5873a4770c99144f958ce0cce7e
parent918537e240c824d32e26e967a9f403a7169ed7d3
lib: Fix gcc 9 warning -> error issue

gcc is complaing about this with --enable-dev and --enable-werror:

In function 'nb_log_callback',
    inlined from 'nb_transaction_apply_finish' at lib/northbound.c:1106:4:
lib/northbound.c:777:2: error: '%s' directive argument is null [-Werror=format-overflow=]
  777 |  zlog_debug(
      |  ^~~~~~~~~~~
  778 |   "northbound callback: event [%s] op [%s] xpath [%s] value [%s]",
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  779 |   nb_event_name(event), nb_operation_name(operation), xpath,
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  780 |   value);
      |   ~~~~~~
  CC       lib/ringbuf.lo

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/northbound.c