bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

include <stdlib.h> when needed


From: Bruno Haible
Subject: include <stdlib.h> when needed
Date: Sun, 30 Jun 2019 16:14:00 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-151-generic; KDE/5.18.0; x86_64; ; )

I got warnings about a missing #include <stdlib.h> in windows-tls.c.
Some other files also need <stdlib.h>, and it should better be done explicitly
rather than implicitly or by accident.


2019-06-30  Bruno Haible  <address@hidden>

        Include <stdlib.h> when needed.
        * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
        * lib/faccessat.c: Likewise.
        * lib/fchmodat.c: Likewise.
        * lib/fchownat.c: Likewise.
        * lib/fstatat.c: Likewise.
        * lib/mkfifoat.c: Likewise.
        * lib/mknodat.c: Likewise.
        * lib/readlinkat.c: Likewise.
        * lib/symlinkat.c: Likewise.
        * lib/utimensat.c: Likewise.
        * lib/mkdirat.c: Likewise. Include also the specification header.

2019-06-30  Bruno Haible  <address@hidden>

        Include <stdlib.h> when needed.
        * lib/cnd.c: Include <stdlib.h>, needed for abort().
        * lib/fcntl.c: Likewise.
        * lib/mbscasestr.c: Likewise.
        * lib/mbssep.c: Likewise.
        * lib/mbsstr.c: Likewise.
        * lib/openat.c: Include <stdlib.h>, needed for free().
        * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
        abort().

Attachment: 0001-Include-stdlib.h-when-needed.patch
Description: Text Data

Attachment: 0002-Include-stdlib.h-when-needed.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]