ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] libfltk Re: [cyber] I: Sisyphus-20070628 REBUILD x86-64 status
Date: Thu, 28 Jun 2007 22:23:44 +0400
Message-ID: <20070628182344.GA4909@procyon.home> (raw)
In-Reply-To: <20070628171912.GF3759@osdn.org.ua>

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

On Thu, Jun 28, 2007 at 08:19:12PM +0300, Michael Shigorin wrote:
> On Thu, Jun 28, 2007 at 08:38:30PM +0400, QA Team Robot wrote:
> > package libfltk-1.1.7-alt2 was orphaned [18] (Alexey Tourbin).
> 
> Compiling cursor.cxx...
> ../FL/Fl_Image.H: In constructor 'Fl_RGB_Image::Fl_RGB_Image(const uchar*, int, int, int, int)':
> ../FL/Fl_Image.H:95: warning: dereferencing type-punned pointer will break strict-aliasing rules
> cursor.cxx: In function 'void choice_cb(Fl_Widget*, void*)':
> cursor.cxx:42: error: cast from 'void*' to 'int' loses precision
> make[1]: *** [cursor.o] Error 1

void choice_cb(Fl_Widget *, void *v) {
  cursor = (Fl_Cursor)(int)v;

...
  {"FL_CURSOR_DEFAULT",0,choice_cb,(void*)FL_CURSOR_DEFAULT},
  {"FL_CURSOR_ARROW",0,choice_cb,(void*)FL_CURSOR_ARROW},
...

В указателе на самом деле лежит число; в этом случае достаточно
заменить int на long - такое преобразование указателя пройдёт
нормально.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2007-06-28 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-28 17:19 ` Michael Shigorin
2007-06-28 18:23   ` Sergey Vlasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070628182344.GA4909@procyon.home \
    --to=vsu@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git