]> sigrok.org Git - libsigrok.git/commit
Remove the inline qualification from sr_rational_set().
authorAurelien Jacobs <redacted>
Thu, 12 Feb 2015 10:24:11 +0000 (11:24 +0100)
committerAurelien Jacobs <redacted>
Thu, 12 Feb 2015 10:24:11 +0000 (11:24 +0100)
commit2617c81a4b101714bf90173f4da0724007c58219
tree4ecd294ecfbaf357345cb7f22f3fd8fa98c4344e
parentee29d92e140a7b516b4ad24b2cd3047bfa5497cd
Remove the inline qualification from sr_rational_set().

Inlining can only happen in the same compilation unit where the
function was defined, so there is no sense declaring an inline
function in a header if this function is not defined in this
same header.

This fixes the following gcc-5 warning:

In file included from include/libsigrok/libsigrok.h:1066:0,
                 from src/version.c:21:
include/libsigrok/proto.h:36:20: warning: inline function 'sr_rational_set' declared but never defined
 SR_API inline void sr_rational_set(struct sr_rational *r, uint64_t p, uint64_t q);
                    ^
include/libsigrok/proto.h
src/analog.c