[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texinfo master branch [macOS]
From: |
Patrice Dumas |
Subject: |
Re: Texinfo master branch [macOS] |
Date: |
Tue, 11 Jun 2024 15:00:39 +0200 |
On Tue, Jun 11, 2024 at 12:50:16PM +0200, Bruno Haible wrote:
> Patrice Dumas wrote:
> > Thanks, should be fixed.
>
> Seems to help. Now, a different compilation error:
>
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../../../tp/Texinfo/XS
> -I../../../../tp/Texinfo/XS/main -I../../../../tp/Texinfo/XS/parsetexi
> -I../../../../tp/Texinfo/XS -DDATADIR=\"/usr/local/share\"
> -I../../../../tp/Texinfo/XS/gnulib/lib -I./gnulib/lib -I/Users/runner/include
> -I/usr/local/opt/gettext/include -Wall -I/usr/local/include -MT
> parsetexi/libtexinfo_la-debug_parser.lo -MD -MP -MF
> parsetexi/.deps/libtexinfo_la-debug_parser.Tpo -c
> ../../../../tp/Texinfo/XS/parsetexi/debug_parser.c -fno-common -DPIC -o
> parsetexi/.libs/libtexinfo_la-debug_parser.o
> ../../../../tp/Texinfo/XS/parsetexi/debug_parser.c:62:7: error: implicitly
> declaring library function 'free' with type 'void (void *)'
> [-Werror,-Wimplicit-function-declaration]
> free (result);
> ^
> ../../../../tp/Texinfo/XS/parsetexi/debug_parser.c:62:7: note: include the
> header <stdlib.h> or explicitly provide a declaration for 'free'
> 1 error generated.
> make[5]: *** [parsetexi/libtexinfo_la-debug_parser.lo] Error 1
>
> Btw, this is not platform-dependent code. You should see warnings about
> such missing #include statements, if you compile with "gcc -Wall" on systems
> with glibc.
That would be great, but I do not get such warning even wiht -Wall.
What I usually use as CFLAGS is
-g -Wformat-security -Wall -Wno-parentheses -Wno-missing-braces
We get a lot of false positive with -Wparentheses and -Wmissing-braces
(though occasionally some true errors...).
> More about best practices for gcc warnings in the Gnulib manual:
> https://www.gnu.org/software/gnulib/manual/html_node/manywarnings.html
I tried to add more warnings from the gnulib m4/manywarnings.m4 but I
did not get anything on missing stdlib.h.
--
Pat
- Texinfo 7.1.0.90 pretest available, Gavin Smith, 2024/06/08
- Re: Texinfo 7.1.0.90 pretest results, Bruno Haible, 2024/06/08
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Gavin Smith, 2024/06/09
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Gavin Smith, 2024/06/09
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Patrice Dumas, 2024/06/10
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Bruno Haible, 2024/06/10
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Patrice Dumas, 2024/06/10
- Re: Texinfo master branch [macOS], Bruno Haible, 2024/06/10
- Re: Texinfo master branch [macOS], Patrice Dumas, 2024/06/11
- Re: Texinfo master branch [macOS], Bruno Haible, 2024/06/11
- Re: Texinfo master branch [macOS],
Patrice Dumas <=
- Re: Texinfo master branch [OpenBSD], Bruno Haible, 2024/06/10
- Re: Texinfo master branch [OpenBSD], Gavin Smith, 2024/06/10
- Re: Texinfo master branch [OpenBSD], Patrice Dumas, 2024/06/11
- Re: Texinfo master branch [Solaris 11 OmniOS], Bruno Haible, 2024/06/10
- Re: Texinfo master branch [Solaris 11 OmniOS], Patrice Dumas, 2024/06/13
- Re: Texinfo master branch [Solaris 11 OmniOS], Gavin Smith, 2024/06/13
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Gavin Smith, 2024/06/10
- Re: Texinfo master branch [macOS], Bruno Haible, 2024/06/10
- Re: Texinfo master branch [macOS], Patrice Dumas, 2024/06/11
- Re: Texinfo 7.1.0.90 pretest results [OpenBSD 7.5], Gavin Smith, 2024/06/10