Compilation for MacOS fails due to missing function results when forcing the compiler to handle this as an error

Issue #235 resolved
Daniel Bärmann created an issue

Of course one could lower the warning level to ‘warning’, but an undefined return value certainly could cause problems elsewhere.

Found so far in

WinApi.CrossVcl: TMalloc.DidAlloc, TMalloc.GetSize, TMalloc.Realloc

WinApi.Windows.Impl.inc: GetFileVersion

WinApi.Windows: InterlockedBitTestAndComplement, InterlockedBitTestAndComplement64, InterlockedBitTestAndReset, InterlockedBitTestAndReset64, InterlockedBitTestAndSet, InterlockedBitTestAndSet64, InterlockedCompareExchange128

WinApi.GDIPOBJ: TGPFont.GetLogFontA

System.Win.ComObj: TAutoObject.GetIDsOfNames, TAutoIntfObject.GetIDsOfNames

Comments (3)

  1. Log in to comment