Project

General

Profile

Actions

Bug #9398

closed

cron: this statement may fall through

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

issue found by gcc 7 build:

    at.c: In function 'parse_time':
    at.c:961:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
        t += 2;
        ~~^~~~
    at.c:962:3: note: here
       case 10: /* YYMMDDhhmm */
       ^~~~
    at.c:965:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
        if (century == 0) {
           ^
    at.c:970:3: note: here
       case 8:  /* MMDDhhmm */
       ^~~~
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF