Menu

#307 Unused variable warning in aesGladman/fileenc.cpp

closed-fixed
nobody
5
2017-03-22
2016-01-13
No

I modified the code in aesGladman/fileenc.cpp to eliminate a compile-time warning
(\aesGladman\fileenc.cpp|134|warning: unused variable 'res' [-Wunused-variable])
Another solution could be to get rid of the local variable res in fcrypt_end() function, since it's not strictly needed.

I enclose the modified file.

1 Attachments

Discussion

  • Michael Zeilfelder

    • status: open --> closed-fixed
     
  • Michael Zeilfelder

    Fixed in svn trunk version r5374. Had to use the second solution with removing the local variable. The first patch didn't remove the warning as that macro doesn't use the variable (just returns 10 always and ignores the variable) ;-)

     

Log in to post a comment.