bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: type conversion warnings


From: Joe Neeman
Subject: Re: type conversion warnings
Date: Thu, 04 Jun 2009 14:48:14 +0300

On Mon, 2009-06-01 at 12:22 +0200, Werner LEMBERG wrote:
> Using g++ 4.3.2, I get many warnings like the one below while
> compiling lilypond:
> 
>   libc-extension.cc: In function 'char* strnlwr(char*, int)':
>   libc-extension.cc:26: warning: conversion to 'char' from 'int'
>                         may alter its value
>   libc-extension.cc: In function 'char* strnupr(char*, int)':
>   libc-extension.cc:37: warning: conversion to 'char' from 'int'
>                         may alter its value
> 
> Most of them, I presume, are harmless, but...  I think it would be a
> good idea to fix them.

Perhaps this would be a good job for our new Code Janitor? There are
some places (particularly ttf.cc) where it could be _slightly_ more
interesting than just adding explicit casts.

Joe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]