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

signedness warnings addressed #217

Merged
merged 2 commits into from
Aug 24, 2024
Merged

Conversation

pearsonca
Copy link
Contributor

Should address #216

@eddelbuettel
Copy link
Owner

Lovely. Can you toss a ChangeLog entry in to close the deal?

@eddelbuettel
Copy link
Owner

eddelbuettel commented Aug 24, 2024

There is also a bit of remaining nagging on 'unused':

ccache gcc -I"/usr/share/R/include" -DNDEBUG -I.      -fpic  -g -O2 -Wall -pipe -DBOOST_NO_AUTO_PTR -Wno-sign-compare -Wno-parentheses -Wno-maybe-uninitialized   -std=gnu99 -c digest.c -o digest.o
digest.c: In function ‘digest’:                                                                          
digest.c:250:50: warning: unused variable ‘d’ [-Wunused-variable]                          
  250 |         unsigned char sha512sum[output_length], *d = sha512sum;                                  
      |                                                  ^                                               
digest.c:422:44: warning: unused variable ‘d’ [-Wunused-variable]                                        
  422 |         uint8_t sha512sum[output_length], *d = sha512sum;                                        
      |                                            ^                                                     
digest.c:168:26: warning: unused variable ‘outputp’ [-Wunused-variable]
  168 |     char output[128+1], *outputp = output;    /* 33 for md5, 41 for sha1, 65 for sha256, 128 for sha512; plus trailing NULL */
      |                          ^~~~~~~                                                                 
digest.c: At top level:                                                                                  
digest.c:51:20: warning: ‘sha2_hex_digits’ defined but not used [-Wunused-variable]
   51 | static const char *sha2_hex_digits = "0123456789abcdef";                                         
      |                    ^~~~~~~~~~~~~~~                                                               
ccache gcc -I"/usr/share/R/include" -DNDEBUG -I.      -fpic  -g -O2 -Wall -pipe -DBOOST_NO_AUTO_PTR -Wno-sign-compare -Wno-parentheses -Wno-maybe-uninitialized   -std=gnu99 -c digest2int.c -o digest2int.o

But 'signedness' is nailed, so thank you!

Copy link
Owner

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a ChangeLog entry, and address the 'unused variable' nags.

@eddelbuettel eddelbuettel self-requested a review August 24, 2024 16:01
Copy link
Owner

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now with changelog entry and the (old ?) unused variables warnings taken care of

@eddelbuettel eddelbuettel merged commit d980c53 into eddelbuettel:master Aug 24, 2024
2 checks passed
@pearsonca
Copy link
Contributor Author

Didn't see those unused, sorry - just landed from Transatlantic flight or would have hopped on this earlier.

@pearsonca
Copy link
Contributor Author

I think the sha const needs to go into the define block for USESHA512, but I can take care of that. The others were definitely vestigial.

@eddelbuettel
Copy link
Owner

eddelbuettel commented Aug 24, 2024

Done in a970e58.

Amended to fd1fa9f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants