diff options
author | Evan Martin <martine@danga.com> | 2011-01-08 19:38:58 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-08 19:38:58 (GMT) |
commit | fd7dd853e9cae9725ddae0c60252d2d212632bcc (patch) | |
tree | e8933ae2e0e6591e2a8fd1e3894d66751864e135 /src | |
parent | d955d7df6da1a3c7280521f2b32b75662ed1350d (diff) | |
download | Ninja-fd7dd853e9cae9725ddae0c60252d2d212632bcc.zip Ninja-fd7dd853e9cae9725ddae0c60252d2d212632bcc.tar.gz Ninja-fd7dd853e9cae9725ddae0c60252d2d212632bcc.tar.bz2 |
work around mktemp warning
Diffstat (limited to 'src')
-rw-r--r-- | src/build_log_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build_log_test.cc b/src/build_log_test.cc index 11c0e09..ca268d2 100644 --- a/src/build_log_test.cc +++ b/src/build_log_test.cc @@ -4,8 +4,7 @@ struct BuildLogTest : public StateTestWithBuiltinRules { virtual void SetUp() { - char mktemp_template[] = "BuildLogTest-XXXXXX"; - log_filename_ = mktemp(mktemp_template); + log_filename_ = tempnam(NULL, "ninja"); } virtual void TearDown() { unlink(log_filename_.c_str()); |