mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-27 01:44:21 +00:00
maint: add attributes to two functions without side effects
* src/date.c (res_width): This function computes its result solely from the value of its parameter and qualifies for the const attribute. * src/tee.c (get_next_out): This function has no side effect and qualifies for the pure attribute. * THANKS.in: Remove duplicate now that author has a commit in the repo. Those two functions were flagged by GCC 12.3.0, though not by GCC 13.2.1.
This commit is contained in:
parent
a966dcdb69
commit
f07f5b008f
@ -566,7 +566,6 @@ Rudolf Kastl rkastl@redhat.com
|
||||
Sahil Amoli sahilamoli@gmail.com
|
||||
Sami Farin sfarin@ratol.fi
|
||||
Samuel Neves sneves@dei.uc.pt
|
||||
Samuel Tardieu sam@rfc1149.net
|
||||
Samuel Thibault samuel.thibault@ens-lyon.org
|
||||
Samuli Karkkainen Samuli.Karkkainen@hut.fi
|
||||
Sander van Malssen svm@kozmix.ow.nl
|
||||
|
||||
@ -294,6 +294,7 @@ Show the local time for 9AM next Friday on the west coast of the US\n\
|
||||
/* Yield the number of decimal digits needed to output a time with the
|
||||
nanosecond resolution RES, without losing information. */
|
||||
|
||||
ATTRIBUTE_CONST
|
||||
static int
|
||||
res_width (long int res)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user