gas NULL casts

This removes many unnecessary NULL casts.  I'm also adding a few arg
casts in concat calls, to make the code consistent.  Advice from quite
a few years ago was that it's better to use the exact type for args
corresponding to function ellipses, in case NULL is defined as plain
0.  (I think that happened with some early 64-bit systems.  Plain NULL
ought to be OK nowadays.)
This commit is contained in:
Alan Modra
2025-07-09 08:59:10 +09:30
parent a0f33694e2
commit 1a12e548ba
69 changed files with 393 additions and 398 deletions

View File

@@ -221,7 +221,7 @@ as_warn (const char *format, ...)
va_start (args, format);
vsnprintf (buffer, sizeof (buffer), format, args);
va_end (args);
as_warn_internal ((char *) NULL, 0, buffer);
as_warn_internal (NULL, 0, buffer);
}
}
@@ -294,7 +294,7 @@ as_bad (const char *format, ...)
vsnprintf (buffer, sizeof (buffer), format, args);
va_end (args);
as_bad_internal ((char *) NULL, 0, buffer);
as_bad_internal (NULL, 0, buffer);
}
/* Like as_bad but the file name and line number are passed in.