mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-28 15:57:48 +00:00
(set_file_variables): Add parens in length computation in .SUFFIXES dep
loop to quiet compiler warning. From Jim Meyering.
This commit is contained in:
parent
90dffad2cc
commit
9a3666d550
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ set_file_variables (file)
|
||||||
for (d = enter_file (".SUFFIXES")->deps; d != 0; d = d->next)
|
for (d = enter_file (".SUFFIXES")->deps; d != 0; d = d->next)
|
||||||
{
|
{
|
||||||
unsigned int slen = strlen (dep_name (d));
|
unsigned int slen = strlen (dep_name (d));
|
||||||
if (len > slen && !strncmp (dep_name (d), name + len - slen, slen))
|
if (len > slen && !strncmp (dep_name (d), name + (len - slen), slen))
|
||||||
{
|
{
|
||||||
file->stem = savestring (name, len - slen);
|
file->stem = savestring (name, len - slen);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue