Skip to content

Commit

Permalink
cmakelists: fixed tests to avoid clang warnings (neovim#10705)
Browse files Browse the repository at this point in the history
* clang/"dead assignment"
* clang/"Uninitialized argument value"
  • Loading branch information
ngortheone authored and blueyed committed Aug 7, 2019
1 parent 4f148ed commit 935ae63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ check_c_source_compiles("
int main(void)
{
void *trace[1];
int trace_size = backtrace(trace, 1);
backtrace(trace, 1);
return 0;
}
" HAVE_EXECINFO_BACKTRACE)

check_c_source_compiles("
int main(void)
{
int a;
int a = 42;
__builtin_add_overflow(a, a, &a);
__builtin_sub_overflow(a, a, &a);
return 0;
Expand Down

0 comments on commit 935ae63

Please sign in to comment.