From: foobar Date: Fri, 25 Apr 2003 18:11:32 +0000 (+0000) Subject: fix compiler warning (unused variable) X-Git-Tag: SPL_ALPHA~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f140ae993fef1d18933a6d312e65677a3409381d;p=php fix compiler warning (unused variable) --- diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 27277358b2..41f2560c14 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -105,11 +105,13 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char ** char *trailing_slash; char *opened_path; int fd = -1; +#ifndef HAVE_MKSTEMP int open_flags = O_CREAT | O_TRUNC | O_RDWR #ifdef PHP_WIN32 | _O_BINARY #endif ; +#endif #ifdef NETWARE char *file_path = NULL; #endif