|
From: | Bruno Haible |
Subject: | Re: Unused parameter warnings |
Date: | Tue, 06 Oct 2020 23:05:58 +0200 |
User-agent: | KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) |
Marc Nieper-Wißkirchen wrote: > In file included from lib/gl_linked_list.c:29: > lib/gl_linked_list.c: In function 'gl_linked_iterator_from_to': > lib/gl_anylinked_list2.h:938:1: error: function might be candidate for > attribute 'pure' if it is known to return normally > [-Werror=suggest-attribute=pure] > 938 | gl_linked_iterator_from_to (gl_list_t list, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ But no such warning in line 920? Makes no sense to me. And a function that may invoke abort () does "affect observable state". Bruno
[Prev in Thread] | Current Thread | [Next in Thread] |