Răsfoiți Sursa

Fix three warnings when compiling with FPC_USE_LIBC.

osmacro.inc:
  * FpFstat, fpLstat and FpStat: correctly set the result value instead of relying on the result location being the same for cdecl functions as for register functions

git-svn-id: trunk@29240 -
svenbarth 10 ani în urmă
părinte
comite
01278e2800
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      rtl/linux/osmacro.inc

+ 3 - 3
rtl/linux/osmacro.inc

@@ -102,19 +102,19 @@ function __xmknod(__ver : cint; Pathname: PChar; Mode: mode_t; var Device: dev_t
 {$define FPC_HAS_BASEUNIX_STAT}
 {$define FPC_HAS_BASEUNIX_STAT}
 function  FpFstat(fd : cint; var sb : stat): cint;inline;
 function  FpFstat(fd : cint; var sb : stat): cint;inline;
   begin
   begin
-    __fxstat(_STAT_VER,fd,sb);
+    FpFstat:=__fxstat(_STAT_VER,fd,sb);
   end;
   end;
 
 
 
 
 function  fpLstat(path:pchar;Info:pstat):cint;inline;
 function  fpLstat(path:pchar;Info:pstat):cint;inline;
   begin
   begin
-    __lxstat(_STAT_VER,path,Info^);
+    fpLstat:=__lxstat(_STAT_VER,path,Info^);
   end;
   end;
 
 
 
 
 function  FpStat(path: pchar; var buf : stat): cint;inline;
 function  FpStat(path: pchar; var buf : stat): cint;inline;
   begin
   begin
-    __xstat(_STAT_VER,path,buf);
+    FpStat:=__xstat(_STAT_VER,path,buf);
   end;
   end;
 
 
 {$ifndef fs32bit}
 {$ifndef fs32bit}