Hi,

While compiling dwm on slackware 15 I get the following (with 
_FORTIFY_SOURCE=3):

In file included from /usr/include/string.h:519,
                 from dwm.c:29:
In function 'strncpy',
    inlined from 'arrangemon' at dwm.c:400:2,
    inlined from 'arrange' at dwm.c:394:3,
    inlined from 'arrange' at dwm.c:384:1:
/usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' 
specified bound 16 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'arrangemon' at dwm.c:400:2,
    inlined from 'arrange' at dwm.c:391:3:
/usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' 
specified bound 16 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'setlayout' at dwm.c:1508:2:
/usr/include/bits/string_fortified.h:95:10: warning: '__builtin_strncpy' 
specified bound 16 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));

This was enough to stop me updating from 6.3.

Regards,
spaceman

Reply via email to