egcs, warning patch for some libiberty files ...

Jeffrey A Law law@cygnus.com
Thu Oct 15 08:46:00 GMT 1998


  In message < 199810151451.KAA11893@caip.rutgers.edu >you write:
  > 	Some of the libiberty files are linked to from the gcc dir and
  > compiled with -W -Wall.  This patch cleans up those wanrings. 
  > 
  > 	Okay to install?
  > 
  > 		--Kaveh
  > 
  > 
  > 
  > Thu Oct 15 00:12:45 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
  > 
  > 	* choose-temp.c: Prototype mkstemps() when IN_GCC.
  > 
  > 	* cplus-dem.c (consume_count): Cast argument of ctype macro to
  > 	`unsigned char'.
  > 	(cplus_demangle_opname): Cast the result of `strlen' to (int) when
  > 	comparing against one.
  > 	(cplus_mangle_opname): Likewise.
  > 	(demangle_integral_value): Cast argument of ctype macro to
  > 	`unsigned char'.
  > 	(demangle_template_value_parm): Likewise.
  > 	(demangle_template): Initialize variable `bindex'.  Cast the
  > 	result of `strlen' to (int) when comparing against one.  Remove
  > 	unused variable `start_of_value_parm'.
  > 	(demangle_class_name): Cast the result of `strlen' to (int) when
  > 	comparing against one.
  > 	(demangle_prefix): Cast argument of ctype macro to `unsigned char'.
  > 	(gnu_special): Likewise.  Cast the result of `strlen' to (int)
  > 	when comparing against one.
  > 	(demangle_qualified): Cast argument of ctype macro to `unsigned char'.
  > 	(get_count): Likewise.
  > 	(do_type): Likewise.  Cast the result of `strlen' to (int) when
  > 	comparing against one.
  > 	(demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
  > 	(demangle_function_name): Cast the result of `strlen' to (int)
  > 	when comparing against one.
  > 
  > 	* mkstemp.c (mkstemps): Cast variable `len' to (int) when
  > 	comparing against one.
Looks good.  Thanks!

Please install this patch.
jeff



More information about the Gcc-patches mailing list