This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit b02ffda9555843d94ff6003340f2d2263eb3bb5d
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Mar 14 19:18:29 2025 +0100
test: Avoid warnings from _FORTIFY_SOURCE
---
test/test_load.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/test_load.cpp b/test/test_load.cpp
index e7380bc..30413f5 100644
--- a/test/test_load.cpp
+++ b/test/test_load.cpp
@@ -162,7 +162,8 @@ test_load(void)
snprintf(fileo, sizeof(fileo), "%s/%s.%s.%s", IMG_GEN,
FILE_PFX1, pfxs[i], pfxs[j]);
unlink(fileo);
- symlink(filei, fileo);
+ err = symlink(filei, fileo);
+ ASSERT_EQ(err, 0);
D("Load incorrect suffix '%s'\n", fileo);
im = imlib_load_image_with_errno_return(fileo, &err);
EXPECT_TRUE(im);
@@ -200,7 +201,8 @@ test_load(void)
// Non-existing files of all types
snprintf(fileo, sizeof(fileo), "%s/%s.%s", IMG_GEN, "nonex", pfxs[i]);
unlink(fileo);
- symlink("non-existing", fileo);
+ err = symlink("non-existing", fileo);
+ ASSERT_EQ(err, 0);
D("Load non-existing '%s'\n", fileo);
im = imlib_load_image(fileo);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.