Fix bogus clang -Wunused-variable warning
This commit is contained in:
parent
828cadd54f
commit
2c3a258d17
|
@ -625,6 +625,12 @@ static int main(int argc, char *argv[])
|
|||
#if defined(DXX_BUILD_DESCENT_II)
|
||||
con_puts(CON_DEBUG, "Initializing movie libraries...");
|
||||
auto &&loaded_builtin_movies = init_movies(); //init movie libraries
|
||||
/* clang does not recognize that creating the variable for the
|
||||
* purpose of extending the returned value's lifetime is a use. Add
|
||||
* an explicit dummy use to silence its bogus -Wunused-variable
|
||||
* warning.
|
||||
*/
|
||||
(void)loaded_builtin_movies;
|
||||
#endif
|
||||
|
||||
show_titles();
|
||||
|
|
Loading…
Reference in a new issue