Lachim / redis

Automatically exported from code.google.com/p/redis
2 stars 0 forks source link

zmalloc.c:265: error: conflicting types for 'zmalloc_get_rss' #437

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
View zmalloc.c:265

In zmalloc.h:42  - size_t
In zmalloc.c:265 - float

While compiling error appear:
zmalloc.c:265: error: conflicting types for 'zmalloc_get_rss'
zmalloc.h:42: error: previous declaration of 'zmalloc_get_rss' was here

Original issue reported on code.google.com by vita...@gmail.com on 20 Jan 2011 at 2:57

GoogleCodeExporter commented 8 years ago
Hello. Can't reproduce. What Redis version?

Original comment by anti...@gmail.com on 20 Jan 2011 at 8:37

GoogleCodeExporter commented 8 years ago
Oh, sorry, redis 2.2.0rc3

Original comment by vita...@gmail.com on 20 Jan 2011 at 9:50

GoogleCodeExporter commented 8 years ago
Error appear while compiling on FreeBSD

Original comment by vita...@gmail.com on 20 Jan 2011 at 9:53

GoogleCodeExporter commented 8 years ago
Ok was a BSD specific issue, fixed in 2.2 branch...

The fix will appear on RC4, for now just edit zmalloc.c and change "float" in 
line 265 with "size_t" and everything will work well.

Thanks for reporting,
Cheers,
Salvatore

Original comment by anti...@gmail.com on 20 Jan 2011 at 10:27