corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriela Gibson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COR-50) Cast from pointer to integer of different size
Date Mon, 02 Mar 2015 20:58:05 GMT

     [ https://issues.apache.org/jira/browse/COR-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gabriela Gibson updated COR-50:
-------------------------------
    Attachment: DFalloc.patch
                dfalloc.logmesg

This now compiles without warnings on my 32-bit machine.  Not tested on a 64 machine.

> 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
>            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/src/lib/DFAllocator.c:21:0:
> /home/g/cor2/incubator-corinthia/DocFormats/core/src/lib/DFAllocator.c: In function ‘DFAllocatorAlloc’:
> /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) == 0);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message