On 10/5/21, 12:22 AM, "Michael Paquier" <michael@paquier.xyz> wrote:
> - 0001 does some refactoring of the file rotation in syslogger.c,
> that's the same patch as previously posted.
My compiler is unhappy with 5c6e33f:
syslogger.c: In function ‘logfile_rotate_dest’:
syslogger.c:1302:11: warning: ‘logFileExt’ may be used uninitialized in this function [-Wmaybe-uninitialized]
filename = logfile_getname(fntime, logFileExt);
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The attached patch seems to fix it.
Nathan