gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] json.c:556:6: warning: empty declaration


From: Gary E. Miller
Subject: Re: [gpsd-users] json.c:556:6: warning: empty declaration
Date: Thu, 4 Oct 2018 13:49:59 -0700

Yo Charles!

On Thu, 4 Oct 2018 14:36:20 -0600
Charles Curley <address@hidden> wrote:

> I just re-cloned the repo, so as to start with a fresh build. I
> then check out tag release-3.18. System is Debian 9.5 stretch.

Cool.

> json.c: In function 'json_internal_read_object':
> json.c:556:6: warning: empty declaration
>       __attribute__ ((fallthrough));
>       ^~~~~~~~~~~~~

Yeah.  Looks like you have an old gcc?  Known issue, nothing to worry
about.

> packet.c: In function 'nextstate':
> packet.c:1065:2: warning: empty declaration
>   __attribute__ ((fallthrough));
>   ^~~~~~~~~~~~~

Ditto.

> They are warning and not fatal. Still....

We know old gcc puts up those messages.  New gcc is happy.

We looked for ways to tell all version of gcc, and other cc, that we
have intentional FALLTHOUGH, but failed.  We settled on the way that
works for new gcc.  

Suggestions welcome, but be warned, the problem is non-trivial.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgpseSLKpAOqm.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]