Board index » cppbuilder » W8057 from utilcls.h line 156
LarryJ
CBuilder Developer |
W8057 from utilcls.h line 1562006-09-29 11:36:28 AM cppbuilder32 I have two warnings from a Borland file named utilcls.h. Line 156 is the final line of the function below. Is it possible to remove these warnings or is this just part of the compile process for this file? [Warning] utilcls.h(156): W8057 Parameter 'hr' is never used [Warning] utilcls.h(156): W8057 Parameter 'file' is never used // Helper used to throw an exception template <class T> void DebugHlpr_THROW(T* msg, HRESULT hr, T* file, bool /*assertFailed*/) { #if defined(ComObjHPP) // NOTE: This does not retrieve rich error information, the way Delphi and VB environments // do. Eventually this 'throw' will either throw a rich EOleException or some other // OLE exception class (something equivalent to _com_error, maybe??) // // For now, you can specialized [T = TCHAR] 'DebugHlpr_THROW' to retrieve rich error // information and throw a VCL exception class, if you're using VCL classes already, // or throw a custom exception class. // // NOTE: Use the assertFailed parameter to distinguish between Assertion and // OLECHECK failures. (Maybe throw something different??) throw EOleException(msg, hr, file, _T(""), 0); #else throw msg; // Hopefully we never get here: Need something much better to throw!! #endif }// LINE 156 Thanks Larry Johnson |