logadm: variable may be used uninitialized
cmd - userland programs
cc1: warnings being treated as errors main.c: In function 'main': main.c:165: error: 'clopts' may be used uninitialized in this function [-Wuninitialized] cc1: warnings being treated as errors conf.c: In function 'conf_scan': conf.c:198: error: 'cp' may be used uninitialized in this function [-Wuninitialized] main.c: In function 'docopytruncate': main.c:1241:2: error: 'len' may be used uninitialized in this function [-Werror=maybe-uninitialized] } while (len >= 0); ^ cc1: all warnings being treated as errors *** Error code 1 dmake: Fatal error: Command failed for target `main.o' Current working directory /code/illumos-gate/usr/src/cmd/logadm
Clean them all up.
Testing done. build/install/boot.
Updated by Electric Monk 14 days ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 2ed5ea5a06df7f669d20d88729c625981a0de7bc Author: Toomas Soome <email@example.com> Date: 2021-04-30T07:14:42.000Z 13761 logadm: variable may be used uninitialized Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Reviewed by: C Fraire <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>