about summary refs log tree commit diff
path: root/config.sub
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-17 07:44:26 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-18 06:01:47 +0000
commit3c4b3c87983a989a8404c03639cef1ce5bcd6ef8 (patch)
tree91a4c0e20e987ed770a91aa23f32c5dd657158c7 /config.sub
parent48ebe82b4839fb7a21f021d95e5b76201bad1cb8 (diff)
downloadzsh-3c4b3c87983a989a8404c03639cef1ce5bcd6ef8.tar.gz
zsh-3c4b3c87983a989a8404c03639cef1ce5bcd6ef8.tar.xz
zsh-3c4b3c87983a989a8404c03639cef1ce5bcd6ef8.zip
45064: Fix the mktemp() warning, in debug builds only.
On Linux, linking to mktemp() generates the following warning:
.
    utils.o: In function `gettempname':
    ./Src/utils.c:2229: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

The warning cannot be disabled.

Work around that by using mkstemp() instead, and massage its output so
it behaves like mktemp().  See the new comment for further details.
Diffstat (limited to 'config.sub')
0 files changed, 0 insertions, 0 deletions