G++ Warnings - casts

Create issue
Issue #11 resolved
Aleksander Nitecki created an issue

glLoadGen 0.2.1, MinGW + MSYS. Commandline:

lua LoadGen.lua core_3_3 -style=pointer_cpp

Cpp file, lines where void* are casted into function poniters - "ISO C++ forbids casting between pointer-to-function and pointer-to-object [enabled by default]"

Comments (8)

  1. Aleksander Nitecki reporter

    No more warnings on Windows - thanks. But there are also similar casts for SGI and Apple.

  2. Jason McKesson repo owner

    NSAddressOfSymbol returns a void*; there's not much I can do about that. So does dlsym. It's rather surprising that something as basic as like dlsym requires illegal casts in C++, but there's no way in these APIs to differentiate between a function symbol and an exported variable symbol.

  3. Log in to comment