Skip to content

Commit

Permalink
C-api: Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKristian-Work committed Jun 7, 2023
1 parent 55750be commit 17d00ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spirv_cross_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ const char *spvc_compiler_get_required_extension(spvc_compiler compiler, size_t
else
return nullptr;
#else
(void)index;
compiler->context->report_error("Enabled extensions can only be queried on GLSL backend.");
return nullptr;
#endif
Expand Down

0 comments on commit 17d00ed

Please sign in to comment.