summaryrefslogtreecommitdiffstats
path: root/src/util.cc
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-11-19 19:22:42 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-11-19 19:22:42 (GMT)
commitccdef45a2a5af30f897c107062e5939c3be4371f (patch)
tree2d00be1a8ddbbc48bb7a2b747d5ba64abed6e638 /src/util.cc
parent73b24b00cc670b2f879d1468fac3670158e42255 (diff)
downloadNinja-ccdef45a2a5af30f897c107062e5939c3be4371f.zip
Ninja-ccdef45a2a5af30f897c107062e5939c3be4371f.tar.gz
Ninja-ccdef45a2a5af30f897c107062e5939c3be4371f.tar.bz2
Remove warning triggered by -Wextra on MinGW.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 0bbcaf2..e8cd11e 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -173,7 +173,8 @@ void SetCloseOnExec(int fd) {
#else
// On Windows, handles must be explicitly marked to be passed to a
// spawned process, so there's nothing to do here.
-#endif // WIN32
+ NINJA_UNUSED_ARG(fd);
+#endif // ! _WIN32
}
int64_t GetTimeMillis() {