summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 51c58578..04d0640d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -273,7 +273,14 @@ copy_fd(int fd_in, int fd_out)
int
mkstemp(char *template)
{
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
mktemp(template);
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif
return open(template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
}
#endif