On Fri, Apr 15, 2011 at 1:19 PM, Vin Shelton <acs(a)alumni.princeton.edu>wrote:
Hi, Jeff -
On Fri, Apr 15, 2011 at 8:19 AM, Jeff Sparkes <jsparkes(a)gmail.com> wrote:
changeset: 5398:5256fedd50e6
> parent: 5382:d363790fd936
> user: Jeff Sparkes <jsparkes(a)gmail.com>
> date: Mon Mar 28 09:25:15 2011 -0400
> files: src/ChangeLog src/console-tty-impl.h src/device-tty.c
> src/device.c src/redisplay-tty.c
> description:
> issue 757 - tty device metric for num-color-cells
>
> -------------------- ChangeLog entries follow: --------------------
>
> I'm seeing a build failure:
cc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wdeclaration-after-statement -Wunused-parameter -g
-O -Demacs -I. -I/opt/src/xemacs-21.5-2011-04-15-debug/src -DHAVE_CONFIG_H
-I/opt/include /opt/src/xemacs-21.5-2011-04-15-debug/src/device-tty.c
/opt/src/xemacs-21.5-2011-04-15-debug/src/device-tty.c: In function
'tty_device_system_metrics':
/opt/src/xemacs-21.5-2011-04-15-debug/src/device-tty.c:200:14: error:
invalid operands to binary << (have 'double' and 'int')
make[1]: *** [device-tty.o] Error 1
make[1]: Leaving directory
`/home/opt/build/xemacs-21.5-2011-04-15-debug/src'
make: *** [src] Error 2
I don't even see a << in my patch!? Maybe some header is converting
log2
into a shift? Neither gcc nor g++ complained about this on my Ubuntu
system. I'll add explicit casts. Try this patch.
--
Jeff Sparkes
jsparkes(a)gmail.com
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches