Fix: Compiler warning about format string

Don't pass string class into printf("%s"), only char* allowed.
This commit is contained in:
Werner, Stefan
2024-06-20 13:27:41 +02:00
committed by Bastien Montagne
parent a13a116de9
commit 9004e7b668
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ void BVHEmbree::build(Progress &progress,
rtcCommitScene(scene);
}
string BVHEmbree::get_last_error_message()
const char *BVHEmbree::get_last_error_message()
{
const RTCError error_code = rtcGetDeviceError(rtc_device);
switch (error_code) {

View File

@@ -41,7 +41,7 @@ class BVHEmbree : public BVH {
bool offload_scenes_to_gpu(const vector<RTCScene> &scenes);
# endif
string get_last_error_message();
const char *get_last_error_message();
RTCScene scene;