diff options
author | Brad King <brad.king@kitware.com> | 2017-02-23 11:50:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-23 12:15:21 (GMT) |
commit | ce8f117fe2c10f1ebd56cb8adec0dcde1fc62457 (patch) | |
tree | ef3d7d6c9ddb08f4338a6de1b7ea151ea5779b5f /Utilities | |
parent | e0f725f821f251165c17a7580c2000342ac505a2 (diff) | |
download | CMake-ce8f117fe2c10f1ebd56cb8adec0dcde1fc62457.zip CMake-ce8f117fe2c10f1ebd56cb8adec0dcde1fc62457.tar.gz CMake-ce8f117fe2c10f1ebd56cb8adec0dcde1fc62457.tar.bz2 |
libarchive: Avoid declaration after statement in C code
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c b/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c index eb98491..4adf68e 100644 --- a/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c +++ b/Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c @@ -4074,8 +4074,10 @@ write_information_block(struct archive_write *a) memset(info.s, 0, info_size); opt = 0; #if defined(HAVE__CTIME64_S) - __time64_t iso9660_birth_time_tmp = (__time64_t) iso9660->birth_time; //time_t may be shorter than 64 bits - _ctime64_s(buf, sizeof(buf), &(iso9660_birth_time_tmp)); + { + __time64_t iso9660_birth_time_tmp = (__time64_t) iso9660->birth_time; //time_t may be shorter than 64 bits + _ctime64_s(buf, sizeof(buf), &(iso9660_birth_time_tmp)); + } #elif defined(HAVE_CTIME_R) ctime_r(&(iso9660->birth_time), buf); #else |