aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <>2022-05-17 15:11:57 +0000
committerdrh <>2022-05-17 15:11:57 +0000
commitb8b2d9c5e1ab01c93bff9010985f0a80d288a606 (patch)
tree4a9947d214aa9e7e592115d0cef8649590960118 /src/os_unix.c
parent5348fbe3322570f9fb3b1376cc8f7d25d74e3be3 (diff)
downloadsqlite-b8b2d9c5e1ab01c93bff9010985f0a80d288a606.tar.gz
sqlite-b8b2d9c5e1ab01c93bff9010985f0a80d288a606.zip
Fix harmless compiler warnings in the new unixFullPathname implementation.
FossilOrigin-Name: f7e1ceb5b59a876cfd04a8aac0ee2b322c970555b9c361b4953d711ef6596e37
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index da50f2de1..b933de376 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6484,7 +6484,7 @@ static void appendOnePathElement(
return;
}
got = osReadlink(zIn, zLnk, sizeof(zLnk)-2);
- if( got<=0 || got>=sizeof(zLnk)-2 ){
+ if( got<=0 || got>=(ssize_t)sizeof(zLnk)-2 ){
pPath->rc = unixLogError(SQLITE_CANTOPEN_BKPT, "readlink", zIn);
return;
}
@@ -6534,6 +6534,7 @@ static int unixFullPathname(
char *zOut /* Output buffer */
){
DbPath path;
+ UNUSED_PARAMETER(pVfs);
path.rc = 0;
path.nUsed = 0;
path.nSymlink = 0;