Re: [hatari-devel] Re: Feature request: allow to specify "-d" with autostart

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 07/06/2017 à 22:57, Eero Tamminen a écrit :
Hi,

Commited the change.


Hi

I noticed a small warning while updating sources :

/home/npomarede/src/hatari-int/src/inffile.c: In function 'INF_CreateOverride': /home/npomarede/src/hatari-int/src/inffile.c:746:5: attention : 'format' may be used uninitialized in this function [-Wmaybe-uninitialized]
     fprintf(fp, format, prgname);
     ^
/home/npomarede/src/hatari-int/src/inffile.c:677:14: note: 'format' was declared here
  const char *format, *infname, *prgname;
              ^

'format' will be filled if prgname is not null, which might always be the case ? Could change the code to remove this warning if possible ?

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/