Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175576760
D52563.id162116.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
670 B
Referenced Files
None
Subscribers
None
D52563.id162116.diff
View Options
diff --git a/contrib/bmake/var.c b/contrib/bmake/var.c
--- a/contrib/bmake/var.c
+++ b/contrib/bmake/var.c
@@ -1866,7 +1866,13 @@
static char *
Hash(const char *str)
{
- static const char hexdigits[16] = "0123456789abcdef";
+ /*
+ * Temporary FreeBSD diff: Disable -Wunterminated-string-initialization
+ * warning by adding 1 to size. We can't use __nonstring unconditionally
+ * in bmake since the bmake bootstrap headers don't define it.
+ * TODO: add the __nonstring attribute and change size back to 16.
+ */
+ static const char hexdigits[16 + 1] = "0123456789abcdef";
const unsigned char *ustr = (const unsigned char *)str;
uint32_t h = 0x971e137bU;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 7:31 PM (15 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40687624
Default Alt Text
D52563.id162116.diff (670 B)
Attached To
Mode
D52563: bmake: Fix -Wunterminated-string-initialization
Attached
Detach File
Event Timeline
Log In to Comment