From: Uwe Hermann Date: Thu, 7 May 2015 00:52:00 +0000 (+0200) Subject: scpi-pps: Fix a compiler warning. X-Git-Tag: libsigrok-0.4.0~506 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c80cf3e02eaa8e3154a69a7cae48c361d45ebb4f;p=libsigrok.git scpi-pps: Fix a compiler warning. CC src/hardware/scpi-pps/profiles.lo src/hardware/scpi-pps/profiles.c:67:2: warning: missing initializer for field 'frequency' of 'const struct channel_spec' [-Wmissing-field-initializers] { "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 } }, ^ In file included from src/hardware/scpi-pps/profiles.c:24:0: src/hardware/scpi-pps/protocol.h:106:8: note: 'frequency' declared here float frequency[3]; ^ --- diff --git a/src/hardware/scpi-pps/profiles.c b/src/hardware/scpi-pps/profiles.c index 8b58bff4..02f6940a 100644 --- a/src/hardware/scpi-pps/profiles.c +++ b/src/hardware/scpi-pps/profiles.c @@ -64,7 +64,7 @@ static const uint32_t agilent_n5700a_devopts_cg[] = { }; static const struct channel_spec agilent_n5767a_ch[] = { - { "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 } }, + { "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 }, FREQ_DC_ONLY }, }; static const struct channel_group_spec agilent_n5767a_cg[] = {