On Fri, Nov 07, 2003 at 12:00:56AM -0600, Stephen torri wrote:
> pubkey.h: Non-void functions failed to return value;
> 
> modexppc.h, ec2n.h, eprecomp.h, ecp.h: Missing virtual destructor.

These are both extraneous warnings that I won't bother "fixing". In the 
first case, throwing an exception is a perfectly valid way of exiting a 
function without returning a value. The compiler should be smart enough to 
figure it out, or at least provide a way to disable the warning. GCC does 
not do either. In the second case, it's optional to declare a destructor 
on a derived class when the base class has a virtual destructor. The 
compiler should provide a default destructor when needed. What is the 
point of writing extra code to do exactly what the default destructor 
does, just to satisfy the compiler?

In the future, I won't bother to explain why I won't fix a warning. Go 
ahead and ask if you really want to know.

Reply via email to