Hey everyone,
I've ran the build of our current GitHub hosted sources on my VS 2015 installation and found the following warnings (build related, migration's a different story)
What I'll tackle tomorrow:
Try to apply the proposed fixes above, create up to 7 PRs for GitHub (up to one for each change) and see what happens in the crazy DLL-Import builds then.
virtual ~AlgorithmParametersBase()
{
#ifdef CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE
if (!std::uncaught_exception())
#else
try
#endif
{
//if (m_throwIfNotUsed && !m_used)
// throw ParameterNotUsed(m_name);
}
#ifndef CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE
catch(...)
{
}
#endif
}
I don't know how to properly handle the warning generated by
this.ThreadLocalStorage::~ThreadLocalStorage()
{
#ifdef HAS_WINTHREADS
//if (!TlsFree(m_index))
// throw Err("TlsFree", GetLastError());
#else
int error = pthread_key_delete(m_index);
if (error)
throw Err("pthread_key_delete", error);
#endif
}
So for my fixes (mainly type conversions), the patch is attached.
I can create a PR for the main repo on GitHub if necessary. (Fork
repo: https://github.com/DevJPM/cryptopp-1 Commit:
https://github.com/DevJPM/cryptopp-1/commit/2d5497a8b8666e051029440890a7809bd006700e
)
I don't know why the ptr_diff stuff got changed...
BR
JPM
--
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-user...@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey everyone,
I've gone through all the stuff. (not the special dll import stuff yet)
I could fix a few things without much trouble however there were three issues that were outstanding.
- The destructor of AlgorithmParametersBase. It can throw under specific circumstances. However destructors are assumed not to throw and I think it's considered bad style if they do (there's no one to catch usually). Here's the code and how I disabled the warning for now (not in the proposed patch)...