From: Uwe Hermann Date: Sat, 2 Feb 2013 11:14:26 +0000 (+0100) Subject: Make 'struct rs9lcd_info' non-empty. X-Git-Tag: dsupstream~281 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bf6f8399fc3515c0e3827a17b2fc21f4a9211a0f;p=libsigrok.git Make 'struct rs9lcd_info' non-empty. Empty structs can be an issue (compiler-dependent), so add a dummy entry for this one. --- diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 41144cbd..ac430a38 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -232,7 +232,7 @@ SR_PRIV int sr_metex14_parse(const uint8_t *buf, float *floatval, #define RS9LCD_PACKET_SIZE 9 /* Dummy info struct. The parser does not use it. */ -struct rs9lcd_info {}; +struct rs9lcd_info { int dummy; }; SR_PRIV gboolean sr_rs9lcd_packet_valid(const uint8_t *buf); SR_PRIV int sr_rs9lcd_parse(const uint8_t *buf, float *floatval,