libsigrok/src
Daniel Elstner 7419638d4c Build: Force ISO-conforming format syntax on MinGW
On MinGW, two implementations of printf() are available: either
the Microsoft native one or a standard-conforming replacement from
gnulib. Since we build in C99 mode, headers such as <inttypes.h>
already select the standard-conforming variant. However, MinGW's
GCC does not seem to know about this and assumes MS-style format
syntax by default, which triggers a lot of wrong warnings.

Thus, on MinGW, explicitly decorate sr_log() with the gnu_printf
format flavor attribute. Also use GLib's printf replacements in
the logging implementation to make sure we link to a conforming
printf on any platform, independently of the compiler flags.

This gets rid of the mistaken -Wformat warnings for sr_log(), but
does not cover functions such as g_strdup_printf() which do not
explicitly specify the gnu_printf flavor in the format attribute.
This can be overcome by adding "-D__printf__=__gnu_printf__" to
CPPFLAGS, but it would be inappropriate for libsigrok to define
this on its own.
2015-09-13 15:11:27 +02:00
..
dmm Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
hardware Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
input Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
lcr deree-de5000: Drop SR_CONF_MEASURED_QUANTITY functionality. 2015-08-30 20:40:56 +02:00
modbus Build: Set local include directories in Makefile.am 2015-08-16 18:28:12 +02:00
output Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
scale Add a protocol parser for KERN scales. 2015-08-28 11:43:04 +02:00
scpi Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
transform Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
analog.c Various key lists: Add reminders of what needs updates upon changes. 2015-08-28 16:32:14 +02:00
backend.c FreeBSD: Fix compile/link error due to missing libusb_get_version(). 2015-08-18 18:27:55 +02:00
device.c Make sr_next_enabled_channel() from scpi-pps available library-wide. 2015-08-25 19:13:17 +02:00
drivers.c hung-chang-dso-2100: Initial driver skeleton. 2015-09-10 14:42:12 +02:00
error.c Remove SR_OK_CONTINUE. 2015-08-31 16:23:10 +02:00
ezusb.c portability: Use g_strerror() in favor of strerror(). 2015-09-09 15:20:10 +02:00
fallback.c Build: Set local include directories in Makefile.am 2015-08-16 18:28:12 +02:00
hwdriver.c Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
libsigrok-internal.h Build: Force ISO-conforming format syntax on MinGW 2015-09-13 15:11:27 +02:00
log.c Build: Force ISO-conforming format syntax on MinGW 2015-09-13 15:11:27 +02:00
scpi.h scpi: Make helper functions from scpi-pps available library-wide. 2015-08-25 19:13:17 +02:00
serial.c Fix log varargs bugs indicated by -Wformat 2015-09-13 02:29:38 +02:00
session.c session: Return immediately if there are no event sources 2015-09-11 19:15:55 +02:00
session_driver.c Build: Set local include directories in Makefile.am 2015-08-16 18:28:12 +02:00
session_file.c portability: Use g_strerror() in favor of strerror(). 2015-09-09 15:20:10 +02:00
soft-trigger.c Build: Set local include directories in Makefile.am 2015-08-16 18:28:12 +02:00
std.c scpi: Move SCPI-related definitions to separate header file. 2015-08-25 19:13:16 +02:00
strutil.c portability: Use g_ascii_strcasecmp() in favor of strcasecmp(). 2015-09-09 15:20:10 +02:00
trigger.c Fix #550 by allowing an empty trigger match list 2015-09-08 19:09:54 +02:00
usb.c session: Port to GLib main loop 2015-09-10 22:46:20 +02:00
version.c Build: Set local include directories in Makefile.am 2015-08-16 18:28:12 +02:00