[patch,libgcc] Fix fixed-bit.c build warning

Georg-Johann Lay gjl@gcc.gnu.org
Fri Jan 11 12:16:00 GMT 2013


Georg-Johann Lay wrote:
> Variables min_high and min_low are set but not used which cases build warnings,
> fixed by this patch.

Better attach the patch...


> Build fine for i686-pc-linux-gnu and avr-unknown-none, the latter definitely
> using this code.
> 
> Ok for trunk?
> 
> Johann
> 
> 
> 	* fixed-bit.c (SATFRACT) <FROM_TYPE = 1, TO_TYPE = 4>: Only
> 	declare / set min_low, min_high if TO_MODE_UNSIGNED == 0.
> 	(SATFRACT) <FROM_TYPE = TO_TYPE = 4>: Only declare / set min_low,
> 	min_high if FROM_MODE_UNSIGNED == 0 and TO_MODE_UNSIGNED == 0.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn-fixed-bit.diff
Type: text/x-patch
Size: 2032 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130111/ac0c18bf/attachment.bin>


More information about the Gcc-patches mailing list