Skip to content

Instantly share code, notes, and snippets.

@jyrkive
Created July 27, 2017 17:53
Show Gist options
  • Save jyrkive/177ee0fe08a4110f9ad08fb6bcb8a6ba to your computer and use it in GitHub Desktop.
Save jyrkive/177ee0fe08a4110f9ad08fb6bcb8a6ba to your computer and use it in GitHub Desktop.
Compile error
src/scripting/lua_audio.cpp: In function ‘int impl_track_get(lua_State*)’:
src/scripting/lua_audio.cpp:237:12: error: the compiler can assume that the address of ‘track’ will never be NULL [-Werror=address]
if(&track == nullptr || !track->valid()) {
~~~~~~~^~~~~~~~~~
src/scripting/lua_audio.cpp: In function ‘int impl_track_set(lua_State*)’:
src/scripting/lua_audio.cpp:269:12: error: the compiler can assume that the address of ‘track’ will never be NULL [-Werror=address]
if(&track == nullptr || !track->valid()) {
~~~~~~~^~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment