postgres.git / summary / log / commit / refs

commit    4dd804a99cd66d8d336ce7060c91e23db3263c31
Author:   Thomas Munro <tmunro@postgresql.org>
Date:     Tue Jun 16 05:40:06 2020 +0000
First released in: 14.0

    Remove useless variable.


src/backend/storage/file/buffile.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c index b402f064bbf..3907349b691 100644 --- a/src/backend/storage/file/buffile.c +++ b/src/backend/storage/file/buffile.c @@ -581,7 +581,6 @@ BufFileRead(BufFile *file, void *ptr, size_t size) void BufFileWrite(BufFile *file, void *ptr, size_t size) { - size_t nwritten = 0; size_t nthistime; Assert(!file->readOnly); @@ -615,7 +614,6 @@ BufFileWrite(BufFile *file, void *ptr, size_t size) file->nbytes = file->pos; ptr = (void *) ((char *) ptr + nthistime); size -= nthistime; - nwritten += nthistime; } } [parent: f5d18862bbb3]