Fix: Compiler warning about format string
Don't pass string class into printf("%s"), only char* allowed.
This commit is contained in:
committed by
Bastien Montagne
parent
a13a116de9
commit
9004e7b668
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user