stvchu / memcacheq

Simple Queue Service over Memcache
http://memcachedb.org/memcacheq
Other
117 stars 33 forks source link

error: implicit declaration of function 'daemonize' #7

Open ryandesign opened 3 years ago

ryandesign commented 3 years ago

When using -Werror=implicit-function-declaration in CFLAGS (or when using the compiler shipped with Xcode 12 or later which has that behavior by default) building memcacheq 0.2.1 fails:

memcacheq.c:2222:15: error: implicit declaration of function 'daemonize' [-Werror,-Wimplicit-function-declaration]
        res = daemonize(maxcore, settings.verbose);
              ^

daemonize is defined in daemon.c but there is no prototype of that function visible to memcacheq.c.

This was originally reported to MacPorts.

cooljeanius commented 3 years ago

This was originally reported to MacPorts.

(by me)