This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix compiler warnings


On the alpha LONGEST is symply a long.  Therefore, on alpha systems
that support long long, this will lead to a format string warning.
The attached patch fixes this.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* valprint.c (print_longest) [CC_HAS_LONG_LONG &&
	PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
	long long) to prevent compiler warning on 64-bit systems.
Mumble something about wanting to eliminate #ifdef PRINTF_HAS_LONG_LONG :-)

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]