]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: trace: make the lockon_ptr const to silence a warning without threads
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Aug 2019 18:26:28 +0000 (20:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Aug 2019 18:26:28 +0000 (20:26 +0200)
commite40f274878eb70946a1792f5ef142ec0d57ac9c4
tree8fdc33c325d513f9c09a445d85664f71a5d2c836
parentf909c91e8a739b9ef7409b399259201fe883771c
BUILD: trace: make the lockon_ptr const to silence a warning without threads

I forgot to fix this one before pushing, despite my tests. lockon_ptr is
only used to compare pointers, it doesn't need to point to a writable
location. Without threads the atomic store is turned into an assignment
and rightfully complains.
include/types/trace.h