This happens in Samba's gitlab pipeline on Fedora 30/31:
[3203/4410] Compiling third_party/resolv_wrapper/resolv_wrapper.c
==> /builds/samba-team/devel/samba/samba-o3.stderr <==
../../third_party/resolv_wrapper/resolv_wrapper.c: In function ‘rwrap_create_fake_uri_rr’:
../../third_party/resolv_wrapper/resolv_wrapper.c:104:33: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
104 | # define RWRAP_LOG(dbglvl, ...) rwrap_log((dbglvl), __func__, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/resolv_wrapper/resolv_wrapper.c:340:3: note: in expansion of macro ‘RWRAP_LOG’
340 | RWRAP_LOG(RWRAP_LOG_ERROR,
| ^~~~~~~~~
../../third_party/resolv_wrapper/resolv_wrapper.c:341:28: note: format string is defined here
341 | "Malformed URI entry [%s]\n", value);
| ^~
cc1: all warnings being treated as errors
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
NEXT_KEY(str_prio, str_weight);
if (uri == NULL) {
RWRAP_LOG(RWRAP_LOG_ERROR,
- "Malformed URI entry [%s]\n", value);
+ "Malformed URI entry [<null>]\n");
return -1;
}