Applied, thanks! [email protected], le sam. 04 oct. 2025 20:40:28 +0100, a ecrit: > From: Diego Nieto Cid <[email protected]> > > ../../exec/main.c:153:7: warning: ignoring return value of 'asprintf' > declared with attribute 'warn_unused_result' [-Wunused-result] > --- > exec/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/exec/main.c b/exec/main.c > index 57bfd137..b920497e 100644 > --- a/exec/main.c > +++ b/exec/main.c > @@ -150,9 +150,9 @@ trivfs_append_args (struct trivfs_control *fsys, > > if (MACH_PORT_VALID (opt_device_master)) > { > - asprintf (&opt, "--device-master-port=%u", opt_device_master); > + int err2 = asprintf (&opt, "--device-master-port=%u", > opt_device_master); > > - if (opt) > + if (err2 != -1) > { > err = argz_add (argz, argz_len, opt); > free (opt); > -- > 2.51.0 > >
-- Samuel How do I type "for i in *.dvi do xdvi i done" in a GUI? (Discussion in comp.os.linux.misc on the intuitiveness of interfaces.)
