mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* read.c (s_align): Use an align_limit temporary to allay a GCC
signed/unsigned comparison warning.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2004-12-07 Ben Elliston <bje@gnu.org>
|
||||
|
||||
* read.c (s_align): Use an align_limit temporary to allay a GCC
|
||||
signed/unsigned comparison warning.
|
||||
|
||||
2004-12-01 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
|
||||
|
||||
@@ -1204,6 +1204,7 @@ do_align (int n, char *fill, int len, int max)
|
||||
static void
|
||||
s_align (int arg, int bytes_p)
|
||||
{
|
||||
unsigned int align_limit = ALIGN_LIMIT;
|
||||
unsigned int align;
|
||||
char *stop = NULL;
|
||||
char stopc;
|
||||
@@ -1243,9 +1244,9 @@ s_align (int arg, int bytes_p)
|
||||
}
|
||||
}
|
||||
|
||||
if (align > ALIGN_LIMIT)
|
||||
if (align > align_limit)
|
||||
{
|
||||
align = ALIGN_LIMIT;
|
||||
align = align_limit;
|
||||
as_warn (_("alignment too large: %u assumed"), align);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user