]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: systemd: fix compiler warning about unused result
authorLukas Tribus <luky-37@hotmail.com>
Tue, 10 Dec 2013 07:32:56 +0000 (08:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2013 07:50:55 +0000 (08:50 +0100)
commit439cfde55b0e3ecb030de9ea1181fcc6a1f9b9c7
treee47c89bba5ca5154063acb52508a2878b715c610
parent6bbb2f68cda9854995fc8d726f93afc7350519cd
BUILD/MINOR: systemd: fix compiler warning about unused result

There is a compiler warning after commit 1b6e75fa84 ("MEDIUM: haproxy-
systemd-wrapper: Use haproxy in same directory"):

src/haproxy-systemd-wrapper.c: In function â\80\98locate_haproxyâ\80\99:
src/haproxy-systemd-wrapper.c:28:10: warning: ignoring return value of â\80\98readlinkâ\80\99, declared with attribute warn_unused_result [-Wunused-result]

Fix the compiler warning by checking the return value of readlink().
src/haproxy-systemd-wrapper.c