gpsd-users
[Top][All Lists]
Advanced

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

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


From: Charles Curley
Subject: [gpsd-users] json.c:556:6: warning: empty declaration
Date: Thu, 4 Oct 2018 14:36:20 -0600

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.

I got three of these:

gcc -o json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include json.c

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

and two of these:

gcc -o packet.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 packet.c

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

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


-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
https://charlescurley.com



reply via email to

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