Page MenuHomeFreeBSD

D52563.id162116.diff
No OneTemporary

D52563.id162116.diff

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

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)

Event Timeline