Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly used uninitialized - last_record_number in gsf_indx.c #71

Open
schwehr opened this issue Jul 19, 2015 · 0 comments
Open

Possibly used uninitialized - last_record_number in gsf_indx.c #71

schwehr opened this issue Jul 19, 2015 · 0 comments

Comments

@schwehr
Copy link
Owner

schwehr commented Jul 19, 2015

gcc-5 -Wall -Wextra -pedantic -g -O   -c -o gsf_indx.o gsf_indx.c
gsf_indx.c: In function ‘gsfOpenIndex’:
gsf_indx.c:1260:31: warning: ‘last_record_number’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         data_id.record_number = last_record_number;
                               ^
gsf_indx.c:1067:22: note: ‘last_record_number’ was declared here
     int              last_record_number;
                      ^
gsf_indx.c:1261:13: warning: ‘last_record_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = gsfRead(handle, data_id.recordID, &data_id, &records, NULL, 0);
             ^
gsf_indx.c:1066:22: note: ‘last_record_type’ was declared here
     int              last_record_type;
                      ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant