When building the Xorg modular tree, this warning is seen in the fnttosfnt build:
"write.c", line 1033: warning: 9 extra byte(s) in string literal initializer ignored
That line of write.c is:
char name = XVENDORNAME" font ";
But the modular makefile.am has these definitions:
-DXVENDORNAME=\"X.org\ Foundation\" -DXVENDORNAMESHORT=\"X.org\"
Most of the other references in fnttosfnt source appear to be to
XVENDORNAMESHORT. Should that be used here as well or does the length
of the name string need to be extended?
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
*** Bug 14629 has been marked as a duplicate of this bug. ***
*** Bug 14930 has been marked as a duplicate of this bug. ***
This bug is from 2005!
Nobody here that could answer the simple question if we should use XVENDORNAMESHORT or extend the size?
This particular string MUST be exactly 16 characters long. Its value is completely arbitrary -- I don't know of any contemporary software that uses the PCLT table at all.
I suggest that you avoid using a macro, and choose a literal string that is exactly 16 characters long. Really, you should not worry about the contents, and avoid using a macro, just choose a random 16-byte-long string.
I suggest "Szczebrzeszyn ".
(I'll just mention that I'm the original author of this code.)
P.S. Thanks to Alan for CC-ing me.
Author: James Cloos <email@example.com>
Date: Thu Mar 13 13:19:11 2008 -0400
I’m not sure the PCLT table is needed by the fonts generated here, but
use a fixed 16 char string as the initializer for the PCLT Fontname field
to silence the warning (or error for some compilers) as reported in bugzilla