Re: Unused parameter warnings

2020-10-06 Thread Marc Nieper-Wißkirchen
Am Di., 6. Okt. 2020 um 23:06 Uhr schrieb Bruno Haible : > 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 '

Re: Port getprogname module to SCO OpenServer

2020-10-06 Thread Benji Wiebe
It is better, but there are still (minor) things to tweak. Minor things tweaked. I'm not sure why I cast getpid to int. Including string.h did fix the strrchr warning. Now using __SCO_SERVER__ || __sysv5__ for OpenServer6/UnixWare7 and SCO cc/GCC detection. Also as far as the indentation

Re: AS_IF

2020-10-06 Thread Zack Weinberg
On Tue, Oct 6, 2020 at 5:57 PM Bruno Haible wrote: > Paul Eggert wrote in > : > > > AFAICS, this is relevant for code written directly into configure.ac. But > > > inside an AC_DEFUN it is irrelevant, because required macros are

Re: Port getprogname module to SCO OpenServer

2020-10-06 Thread Tim Rice
On Wed, 7 Oct 2020, Bruno Haible wrote: > I hope the main conclusions from the table [1] stand? Yes. > Bruno > > [1] https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00022.html > -- Tim RiceMultitalents t...@multitalents.net

Re: Port getprogname module to SCO OpenServer

2020-10-06 Thread Bruno Haible
Tim Rice wrote: > > out, namely that *none* of the 6 compilers that he tested defines both > > __USLC__ and __SCO_VERSION__. > > Actually the table *does* show __USLC__ and __SCO_VERSION__ defined > in the native compiler for both Openserver 6 and UnixWare 7. Oops, you are right. Seems I have pro

Re: AS_IF

2020-10-06 Thread Bruno Haible
[CCing autoconf-patches] Paul Eggert wrote in : > > AFAICS, this is relevant for code written directly into configure.ac. But > > inside an AC_DEFUN it is irrelevant, because required macros are hoisted > > before the body of the

Re: Port getprogname module to SCO OpenServer

2020-10-06 Thread Tim Rice
On Tue, 6 Oct 2020, Bruno Haible wrote: > Benji Wiebe wrote: > > http://osr600doc.sco.com/en/man/html.CP/cc.CP.html#cc_preassertion > > > > Is where the predefined constants for the builtin cc are listed. > > Thanks. You will notice that this web page says that both __USLC__ and > __SCO_VERSION_

Re: Port getprogname module to SCO OpenServer

2020-10-06 Thread Bruno Haible
Hi Tim, > > OK. And what about __UNIXWARE__ and __OPENSERVER__ that I see being used > > [1]? > > On which versions are they defined? > > For the most part __UNIXWARE__ and __OPENSERVER__ were used by some in > build driver scripts. Usually like CFLAGS="-O -D__UNIXWARE__" Since you say "by some

Re: Port getprogname module to SCO OpenServer

2020-10-06 Thread Bruno Haible
Benji Wiebe wrote: > http://osr600doc.sco.com/en/man/html.CP/cc.CP.html#cc_preassertion > > Is where the predefined constants for the builtin cc are listed. Thanks. You will notice that this web page says that both __USLC__ and __SCO_VERSION__ are defined. Which contradicts what Tim Rice just fou

Re: Unused parameter warnings

2020-10-06 Thread Bruno Haible
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