Return-Path: X-Original-To: apmail-corinthia-dev-archive@minotaur.apache.org Delivered-To: apmail-corinthia-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3194010E8A for ; Tue, 3 Mar 2015 21:37:48 +0000 (UTC) Received: (qmail 7411 invoked by uid 500); 3 Mar 2015 21:37:26 -0000 Delivered-To: apmail-corinthia-dev-archive@corinthia.apache.org Received: (qmail 7378 invoked by uid 500); 3 Mar 2015 21:37:26 -0000 Mailing-List: contact dev-help@corinthia.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@corinthia.incubator.apache.org Delivered-To: mailing list dev@corinthia.incubator.apache.org Received: (qmail 7365 invoked by uid 99); 3 Mar 2015 21:37:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 21:37:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 03 Mar 2015 21:37:25 +0000 Received: (qmail 5596 invoked by uid 99); 3 Mar 2015 21:37:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 21:37:04 +0000 Date: Tue, 3 Mar 2015 21:37:04 +0000 (UTC) From: "jan iversen (JIRA)" To: dev@corinthia.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COR-50) Cast from pointer to integer of different size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COR-50?page=3Dcom.atlassian.jir= a.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14345782= #comment-14345782 ]=20 jan iversen commented on COR-50: -------------------------------- Please commit the patch, as you now have the karma to do so. I agree with both peter and you. I want us to compile without warnings, and= if a cast is needed so be it. > Cast from pointer to integer of different size > ---------------------------------------------- > > Key: COR-50 > URL: https://issues.apache.org/jira/browse/COR-50 > Project: Corinthia > Issue Type: Bug > Components: DocFormats - core > Affects Versions: 0.5 > Reporter: Gabriela Gibson > Assignee: Gabriela Gibson > Priority: Minor > Attachments: DFalloc.patch, dfalloc.logmesg > > > Compiler warning when compiling on a 32 bit system with gcc: > In file included from /home/g/cor2/incubator-corinthia/DocFormats/core/sr= c/lib/DFAllocator.c:21:0: > /home/g/cor2/incubator-corinthia/DocFormats/core/src/lib/DFAllocator.c: I= n function =E2=80=98DFAllocatorAlloc=E2=80=99: > /home/g/cor2/incubator-corinthia/DocFormats/core/src/lib/DFAllocator.c:80= :14: warning: cast from pointer to i\ > nteger of different size [-Wpointer-to-int-cast] > assert((((unsigned long long)mem) % 8) =3D=3D 0); -- This message was sent by Atlassian JIRA (v6.3.4#6332)