On 09/17/2009 12:18 AM, Dmitri Pal wrote:
Hi,
Spotted some dhash warnings. Seems like worth fixing especially
shadowing ones...
Sure, will do. Just want to point out the warnings are only in the unit
test and example, not the main code.
dhash_test.c: In function ‘main’:
dhash_test.c:288: warning: declaration of ‘i’ shadows a previous local
dhash_test.c:115: warning: shadowed declaration is here
dhash_test.c:312: warning: declaration of ‘i’ shadows a previous local
dhash_test.c:115: warning: shadowed declaration is here
dhash_test.c:332: warning: declaration of ‘i’ shadows a previous local
dhash_test.c:115: warning: shadowed declaration is here
dhash_example.c: In function ‘main’:
dhash_example.c:44: warning: passing argument 2 of ‘new_data’ discards
qualifiers from pointer target type
dhash_example.c:55: warning: assignment discards qualifiers from pointer
target type
dhash_example.c:76: warning: assignment discards qualifiers from pointer
target type
dhash_example.c:94: warning: declaration of ‘my_data’ shadows a previous
local
dhash_example.c:44: warning: shadowed declaration is here
dhash_example.c:105: warning: assignment discards qualifiers from
pointer target type
--
John Dennis <jdennis(a)redhat.com>
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/