From: Guus Sliepen Date: Sun, 7 Jun 2015 20:25:22 +0000 (+0200) Subject: Fix autoconf check for function attributes. X-Git-Tag: release-1.1pre12~125 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=ab0576a2034b03f92943ac477e4e97731a899554;hp=ab0576a2034b03f92943ac477e4e97731a899554;p=tinc Fix autoconf check for function attributes. GCC warns when a function attribute has no effect. The autoconf check turns warnings about attributes into errors, therefore thinking that they did not work. The reason was that the test function returned void, which is not suitable for checking both __malloc__ and __warn_unused_result__. ---