gbowne1 / random_c_cpp_programs

A collection of my random opensource C and C++ programs
MIT License
3 stars 6 forks source link

[Bug]eigenvalue.c has compile issue with fabs(); #43

Open gbowne1 opened 1 month ago

gbowne1 commented 1 month ago

$ gcc -Wall -Wextra -pedantic -std=c99 -O2 eigenvalue.c -o ../build/eigenvalue eigenvalue.c: In function ‘main’: eigenvalue.c:69:26: warning: ‘largest_index’ may be used uninitialized in this function [-Wmaybe-uninitialized] lambda_new = fabs(x_new[largest_index]);



 Use a minimum of GNU 8.3.0 gcc 8 and libc6