Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
main.c:250:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
        IOCTL_Command_struct cmd = {0};
                                    ^
                                    {}
main.c:250:30: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
        IOCTL_Command_struct cmd = {0};
                                    ^
                                    {}
  • Loading branch information
im-0 committed Dec 11, 2018
1 parent 5fc077f commit 2a67da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static void really_exec_cmd(const char *path, int fd, uint8_t cmd_num,
const char *cmd_name, void *buf, size_t size)
{
int rc;
IOCTL_Command_struct cmd = {0};
IOCTL_Command_struct cmd = {{{0}}, {0}, {0}, 0, 0};

fill_cmd(&cmd, cmd_num, buf, size);
rc = ioctl(fd, CCISS_PASSTHRU, &cmd);
Expand Down

0 comments on commit 2a67da3

Please sign in to comment.