Commit 9b0b68d0 authored by Martin Heistermann's avatar Martin Heistermann

Fix clang warning by avoiding GNU extension.

../OpenFlipper/libs_required/ACG/GL/globjects.hh:154:25: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic]
    return ((char*)NULL + _offset);
parent 47eb9b08
......@@ -151,7 +151,7 @@ public:
char* offset(unsigned int _offset) const
{
return ((char*)NULL + _offset);
return reinterpret_cast<char*>(_offset);
}
GLuint id() const {return vbo;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment