From: Bergmann89 Date: Sun, 26 Oct 2014 15:32:43 +0000 (+0100) Subject: * fixed some compiler warnings in dglOpenGL.pas X-Git-Url: https://git.delphigl.com/?a=commitdiff_plain;h=9da6782c0c72bcb8cd102a713fff7cc34665fdfd;p=LazOpenGLCore.git * fixed some compiler warnings in dglOpenGL.pas --- diff --git a/dglOpenGL.pas b/dglOpenGL.pas index 83470c6..52499fc 100644 --- a/dglOpenGL.pas +++ b/dglOpenGL.pas @@ -14887,7 +14887,7 @@ const function dglLoadLibrary(Name: PChar): Pointer; begin {$IFDEF DGL_WIN} - Result := Pointer(LoadLibrary(Name)); + Result := {%H-}Pointer(LoadLibrary(Name)); {$ENDIF} {$IFDEF DGL_LINUX} @@ -14910,7 +14910,7 @@ begin Result := False else {$IFDEF DGL_WIN} - Result := FreeLibrary(HMODULE(LibHandle)); + Result := FreeLibrary({%H-}HMODULE(LibHandle)); {$ENDIF} {$IFDEF DGL_LINUX} @@ -14934,7 +14934,7 @@ begin {$IFDEF DGL_WIN} - Result := GetProcAddress(HMODULE(LibHandle), ProcName); + Result := GetProcAddress({%H-}HMODULE(LibHandle), ProcName); if result <> nil then exit; @@ -19276,7 +19276,7 @@ var Buffer: String; MajorVersion, MinorVersion: Integer; - procedure TrimAndSplitVersionString(Buffer: String; var Max, Min: Integer); + procedure TrimAndSplitVersionString(Buffer: String; out Max, Min: Integer); // Peels out the X.Y form from the given Buffer which must contain a version string like "text Minor.Major.Build text" // at least however "Major.Minor". var @@ -20071,7 +20071,7 @@ begin if GL_LibHandle = nil then InitOpenGL; - FillChar(PFDescriptor, SizeOf(PFDescriptor), 0); + FillChar(PFDescriptor{%H-}, SizeOf(PFDescriptor), 0); with PFDescriptor do begin @@ -20169,7 +20169,7 @@ begin if not Assigned(GL_LibHandle) then raise Exception.Create('GL_LibHandle is NIL. Could not load OpenGL library!'); - FillChar(PFDescriptor, SizeOf(PFDescriptor), 0); + FillChar(PFDescriptor{%H-}, SizeOf(PFDescriptor), 0); with PFDescriptor do begin