Skip to content

Commit

Permalink
Fixed CppCheck warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanemagnenat committed Mar 19, 2014
1 parent 4cda228 commit 60abfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nabo/kdtree_opencl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace Nabo
try {
context = cl::Context(deviceType, properties);
deviceFound = true;
} catch (cl::Error e) {
} catch (const cl::Error& e) {
cerr << "Cannot find device type " << deviceType << " for OpenCL, falling back to any device" << endl;
}
if (!deviceFound)
Expand Down

0 comments on commit 60abfdc

Please sign in to comment.