Skip to content

Commit 8ab986b

Browse files
authored
build: Test building with clang 22.1, fix warnings uncovered (AcademySoftwareFoundation#5067)
Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 30142ed commit 8ab986b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NEW or CHANGED MINIMUM dependencies since the last major release are **bold**.
1717
* C++17 or higher (also builds with C++20 and C++23)
1818
* The default build mode is C++17. This can be controlled by via the
1919
CMake configuration flag: `-DCMAKE_CXX_STANDARD=20`, etc.
20-
* Compilers: gcc 9.3 - 14.2, clang 10 - 20, MSVS 2017 - 2022 (v19.14
20+
* Compilers: gcc 9.3 - 14.2, clang 10 - 22, MSVS 2017 - 2022 (v19.14
2121
and up), Intel OneAPI C++ compiler 2022+.
2222
* CMake >= 3.18.2 (tested through 4.1)
2323
* Imath >= 3.1 (tested through 3.2 and main)

src/iv/imageviewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ DateTime_to_time_t(string_view datetime, time_t& timet)
17431743
return false;
17441744
// print("{}:{}:{} {}:{}:{}\n", year, month, day, hour, min, sec);
17451745
struct tm tmtime;
1746-
time_t now;
1746+
time_t now = time(nullptr);
17471747
Sysutil::get_local_time(&now, &tmtime); // fill in defaults
17481748
tmtime.tm_sec = sec;
17491749
tmtime.tm_min = min;

0 commit comments

Comments
 (0)