fonttosfnt: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Aug 9 19:26:08 UTC 2025
.gitignore | 4 +-
Makefile.am | 6 ++--
configure.ac | 2 -
read.c | 18 ++++++------
struct.c | 18 ++++++------
write.c | 82 +++++++++++++++++++++++++++++++++--------------------------
6 files changed, 71 insertions(+), 59 deletions(-)
New commits:
commit f7dfd14a4c6621d3d7f692a26df82b08336d50cd
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Aug 3 13:52:27 2025 -0700
write.c: Handle two -Wsuggest-attribute=pure instances
Reported by gcc 15.1:
write.c: In function ‘log2_floor’:
write.c:71:1: warning: function might be candidate for attribute ‘pure’
if it is known to return normally [-Wsuggest-attribute=pure]
71 | log2_floor(int x)
| ^~~~~~~~~~
write.c: In function ‘two_log2_floor’:
write.c:89:1: warning: function might be candidate for attribute ‘pure’
if it is known to return normally [-Wsuggest-attribute=pure]
89 | two_log2_floor(int x)
| ^~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/26>
commit 5f139fae67d7b18b9fcf565769a831cdf2bcfaf9
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Aug 3 13:43:10 2025 -0700
writePCLT: Quiet 2 -Wunterminated-string-initialization warnings
Reported by gcc 15.1:
write.c: In function ‘writePCLT’:
write.c:1144:21: warning: initializer-string for array of ‘char’
truncates NUL terminator but destination lacks ‘nonstring’ attribute
(17 chars into 16 available) [-Wunterminated-string-initialization]
1144 | char name[16] = "X11 font ";
| ^~~~~~~~~~~~~~~~~~
write.c:1145:24: warning: initializer-string for array of ‘char’
truncates NUL terminator but destination lacks ‘nonstring’ attribute
(7 chars into 6 available) [-Wunterminated-string-initialization]
1145 | char filename[6] = "X11R00";
| ^~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/26>
commit f2700cb8e72e8bdf13559fdad8c4e92bfa13af26
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Aug 3 13:28:57 2025 -0700
Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`
`git diff -w` & `git diff -b` show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/26>
More information about the xorg-commit
mailing list