diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |