openhome/ohNet — Issue #2: 53fd9f36cd does not build on Linux
Author: jacobrask
Created: 2011-10-24 20:42:28+00:00
State: open

I get the following error when trying to build ohNet on Linux:

gcc -fPIC -o Build/Obj/Posix/Debug/mDNS.o -c -fexceptions -Wall -Werror -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -g -O0 -fvisibility=hidden -Wno-psabi -IBuild/Include/ OpenHome/Net/Device/Bonjour/mDNSCore/mDNS.c
OpenHome/Net/Device/Bonjour/mDNSCore/mDNS.c: In function ‘ProcessQuery’:
OpenHome/Net/Device/Bonjour/mDNSCore/mDNS.c:5316:7: error: variable ‘i’ set but not used [-Werror=unused-but-set-variable]
OpenHome/Net/Device/Bonjour/mDNSCore/mDNS.c: In function ‘mDNS_Close’:
OpenHome/Net/Device/Bonjour/mDNSCore/mDNS.c:7305:10: error: variable ‘rrcache_totalused’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [Build/Obj/Posix/Debug/mDNS.o] Error 1