postgres.git / summary / log / commit / refs

commit    8bd064f0c7d61c40a8a1179e9d24997fc0a20689
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Wed Jul 18 00:11:34 2018 +0000
First released in: 12.0

    Fix casting in error message for two-phase file
    
    This error from from 811b6e3, which causes compilation warnings with OSX
    10.3 and clang.
    
    Reported by Tom Lane, via buildfarm member longfin.


src/backend/access/transam/twophase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index 0c99b336641..306861bb793 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -1295,7 +1295,7 @@ ReadTwoPhaseFile(TransactionId xid, bool give_warnings) else ereport(WARNING, (errmsg("could not read file \"%s\": read %d of %zu", - path, r, stat.st_size))); + path, r, (Size) stat.st_size))); } pfree(buf); return NULL; [parent: 811b6e36a9e2]