Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 2 Oct 2012 20:43:37 +0200
From: magnum <>
Subject: Re: OpenCL on OSX

On 2 Oct, 2012, at 15:25 , Claudio André <> wrote:

> Em 02-10-2012 05:18, magnum escreveu:
>> ...
>> <program source>:270:5: warning: array index of '15' indexes past the end of an array (that contains 1 element)
>>     ctx->buffer->mem_32[15] = SWAP32(ctx->total * 8);
>>     ^                   ~~
>> /Users/magnum/src/john/src/opencl_cryptsha256.h:89:5: note: array 'mem_32' declared here
>>     uint32_t                    mem_32[1];
>>     ^
>> /Users/magnum/src/john/src/opencl_cryptsha256.h:22:18: note: expanded from macro 'uint32_t'
>> #define uint32_t unsigned int
> And i was thinking you did something like this (below) to source code in unstable (as discussed on other thread). Should i do it now?
> Me: I can change it to something like this: ctx->buffer[15].mem_32[0].
> Magnum: I tried this now and it works fine (and warnings are gone). Apple's OpenCL compiler is the noisiest I've seen. Sometimes that is a good thing, sometimes not :) 

Ah, I remember that now. I did not add it permanently. Please add that next time. The less warnings, the better.

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.