-
- Downloads
check for several more warnings
log.c: In function ‘log_once’: log.c:52:2: warning: function ‘log_once’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] vfprintf(where, format, args); ^~~~~~~~ CC logrotate.o logrotate.c: In function ‘prerotateSingleLog’: logrotate.c:1584:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (glob_count = 0; glob_count < globResult.gl_pathc; glob_count++) { ^ logrotate.c:1586:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (((globResult.gl_pathc >= rotateCount) && (glob_count <= (globResult.gl_pathc - rotateCount))) ^~ logrotate.c:1586:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (((globResult.gl_pathc >= rotateCount) && (glob_count <= (globResult.gl_pathc - rotateCount))) ^~ logrotate.c:1432:9: warning: this statement may fall through [-Wimplicit-fallthrough=] j += 10; /* strlen("[0-9][0-9]") */ ~~^~~~~ logrotate.c:1433:6: note: here case 'm': ^~~~ logrotate.c: In function ‘compGlobResult’: logrotate.c:119: error: declaration of ‘time’ shadows a global declaration /usr/include/time.h:186: error: shadowed declaration is here Closes #147
Please register or sign in to comment