What's the best way to fix warnings from unused result

Achim Gratz Stromeko at nexgo.de
Sun Apr 7 08:12:13 UTC 2019

Hal Murray via devel writes:
> I don't know or care which version we get.  It's different on different 
> systems, so to save the result then say UNUSED_LOCAL gets slightly complicated.

--8<---------------cut here---------------start------------->8---
  Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

           The XSI-compliant version is provided if:
           (_POSIX_C_SOURCE >= 200112L) && !  _GNU_SOURCE
           Otherwise, the GNU-specific version is provided.
--8<---------------cut here---------------end--------------->8---

I think ntpsec strives for POSIX compliance, so if you get the GNU
version on a system  that has the XSI version that'd be an error with
how the feature test macros are supplied.

Similarly, if there are supported versions that only provide the GNU
signature, you'd need to encapsulate the type in something that depends
on the result of the configuration tests.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Blofeld:

More information about the devel mailing list