o3de / o3de-atom-sampleviewer

Atom sample viewer project for the Open 3D Engine
https://o3de.org
Other
31 stars 35 forks source link

Fix compile errors with Clang-17 on Windows #676

Closed mprettner-huawei closed 4 months ago

mprettner-huawei commented 4 months ago

Fix some compile errors with Clang-17 on Windows. The change for printing time(0) is necessary because the size of the time_t type is not fixed and there is also no format string placeholder for it. The error message for the change in MultiSceneExampleComponent is .../MultiSceneExampleComponent.cpp:314:33: error: use of overloaded operator '=' is ambiguous (with operand types 'ReflectionProbeHandle' (aka 'AZ::Uuid') and 'void')