Chromium Code Reviews
DescriptionChange GLGetProcAddress typedef to function returning function pointer
This function is actually defined to return function pointers, not
void*. It's undefined behavior to call this from a variable of the wrong
type. It's also undefined behavior to cast between a function pointer
and a void*, so we should try to avoid that.
BUG=675104
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/7fd0040966be7c3ba0fc0dda7a6b39e91a845906
Cr-Commit-Position: refs/heads/master@{#441505}
Patch Set 1 #Patch Set 2 : fix more void* usage #Patch Set 3 : fix types in other places #Patch Set 4 : fix cast #
Total comments: 1
Messages
Total messages: 37 (26 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||