https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93636
--- Comment #4 from Sebastian Unger <sebunger44 at gmail dot com> --- I agree that the API of strncat is confusingly different to many of the other API such as strncpy etc. However, the use-case I show is a valid one (as far as one can ever consider any use of a non-terminated string 'valid'). I will probably eventually go through all these cases and see if I can refactor them, but I'd rather neither delay the introduction of the new GCC version nor turn off the entire diagnostic warning this is currently under (it also found some real bugs). So, for my purpose having a separate option for this case which may be valid would be an acceptable solution.