diff --git a/defs.h b/defs.h index 8e8e698ee..961384837 100644 --- a/defs.h +++ b/defs.h @@ -1068,7 +1068,6 @@ int xasprintf(QScopedPointer& strp, const char* int xvasprintf(char** strp, const char* fmt, va_list ap); char* strupper(char* src); char* strlower(char* src); -signed int get_tz_offset(); time_t mklocaltime(struct tm* t); time_t mkgmtime(struct tm* t); bool gpsbabel_testmode(); @@ -1191,11 +1190,6 @@ int parse_speed(const QString& str, double* val, double scale, const char* modul */ unsigned long get_crc32(const void* data, int datalen); -/* - * From nmea.c - */ -int nmea_cksum(const char* buf); - /* * Color helpers. */ diff --git a/garmin_txt.cc b/garmin_txt.cc index 6b0fcd0a3..a1fb86613 100644 --- a/garmin_txt.cc +++ b/garmin_txt.cc @@ -118,7 +118,6 @@ static int header_fields[unknown_header + 1][MAX_HEADER_FIELDS]; static int header_ct[unknown_header + 1]; #define GARMIN_UNKNOWN_ALT 1.0e25f -#define DEFAULT_DISPLAY garmin_display_symbol_and_name #define DEFAULT_DATE_FORMAT "dd/mm/yyyy" #define DEFAULT_TIME_FORMAT "HH:mm:ss" diff --git a/globalsat_sport.h b/globalsat_sport.h index ce04e3a7c..9200bbe25 100644 --- a/globalsat_sport.h +++ b/globalsat_sport.h @@ -255,4 +255,4 @@ class GlobalsatSportFormat : public Format {"timezone", &opt_timezone, "Time zone ID", nullptr, ARGTYPE_STRING, ARG_NOMINMAX, nullptr}, }; }; -#endif // GPX_H_INCLUDED_ +#endif // GLOBALSATSPORT_H_INCLUDED_ diff --git a/html.cc b/html.cc index 1db9f5083..d46cc9f2e 100644 --- a/html.cc +++ b/html.cc @@ -75,7 +75,7 @@ HtmlFormat::html_disp(const Waypoint* wpt) const gbfprintf(file_out, "
\n"); if (wpt->description != wpt->shortname) { if (wpt->HasUrlLink()) { - char* d = html_entitize(CSTR(wpt->description)); + char* d = html_entitize(wpt->description); UrlLink link = wpt->GetUrlLink(); gbfprintf(file_out, "%s", CSTR(link.url_), d); xfree(d); @@ -139,7 +139,7 @@ HtmlFormat::html_disp(const Waypoint* wpt) const logpart = xml_findfirst(curlog, "groundspeak:finder"); if (logpart) { - char* f = html_entitize(CSTR(logpart->cdata)); + char* f = html_entitize(logpart->cdata); gbfprintf(file_out, "%s on ", f); xfree(f); } diff --git a/jeeps/gpsdevice.h b/jeeps/gpsdevice.h index 539c8ebc4..583f4afb7 100644 --- a/jeeps/gpsdevice.h +++ b/jeeps/gpsdevice.h @@ -59,4 +59,4 @@ gps_device_op12 Write_Packet; } gps_device_ops; -#endif /* gpsdevice.h */ +#endif /* gpsdevice_h */ diff --git a/jeeps/gpslibusb.cc b/jeeps/gpslibusb.cc index ba0406805..a0f4c16b9 100644 --- a/jeeps/gpslibusb.cc +++ b/jeeps/gpslibusb.cc @@ -328,7 +328,7 @@ garmin_usb_start(struct libusb_device* dev, if (ret != LIBUSB_SUCCESS) { fatal("libusb_set_configuration failed: %s\n", libusb_strerror(static_cast(ret))); - }; + } #endif #if 0 diff --git a/navilink.h b/navilink.h index 3838f7594..3f33e9987 100644 --- a/navilink.h +++ b/navilink.h @@ -133,4 +133,4 @@ typedef struct __packed { #endif -#endif // NAVILINK_H_INCLUDED +#endif // NAVILINK_H_INCLUDED_ diff --git a/raymarine.cc b/raymarine.cc index 634c6a23f..6ead3f2ff 100644 --- a/raymarine.cc +++ b/raymarine.cc @@ -52,8 +52,6 @@ #include #include -using guid_t = unsigned long long; - static inifile_t* fin; static gbfile* fout; static Waypoint** waypt_table; diff --git a/smplrout.cc b/smplrout.cc index 569213797..500f3198c 100644 --- a/smplrout.cc +++ b/smplrout.cc @@ -70,8 +70,6 @@ #if FILTERS_ENABLED #define MYNAME "simplify" -#define sqr(a) ((a)*(a)) - void SimplifyRouteFilter::free_xte(struct xte* xte_rec) { delete xte_rec->intermed; diff --git a/util.cc b/util.cc index a1d9d9a2e..981972dae 100644 --- a/util.cc +++ b/util.cc @@ -623,8 +623,6 @@ si_round(double d) works just like mktime but without all the mucking around with timezones and daylight savings - obsoletes get_tz_offset() - Borrowed from lynx GPL source code http://lynx.isc.org/release/lynx2-8-5/src/mktime.c @@ -1456,10 +1454,6 @@ char* xml_entitize(const char* str) return entitize(str, false); } -char* html_entitize(const char* str) -{ - return entitize(str, true); -} char* html_entitize(const QString& str) { return entitize(CSTR(str), true);