Skip to content

Fails to build on FreeBSD (items.c: comparision is always true) #420

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. portsnap fetch install
2. cd /usr/ports/databases/memcached
3. make

What is the expected output? What do you see instead?
cc -DHAVE_CONFIG_H -I.   -I/usr/local/include  -m64 -O2 -pipe -march=core2 
-fstack-protector -fno-strict-aliasing -std=c99 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached_debug-items.o -MD -MP -MF .deps/memcached_debug-items.Tpo -c -o 
memcached_debug-items.o `test -f 'items.c' || echo './'`items.c
cc1: warnings being treated as errors
items.c: In function 'crawler_crawl_q':
items.c:1141: warning: comparison is always true due to limited range of data 
type
*** [memcached_debug-items.o] Error code 1

What version of the product are you using? On what operating system?
===>  Building for memcached-1.4.24
FreeBSD 9.3-RELEASE-p13

Please provide any additional information below.
Because there is -Werror, the build fails on the warning.

Original issue reported on code.google.com by marian.c...@gmail.com on 20 Jul 2015 at 7:04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions