mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 22:31:06 +01:00
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.
This commit is contained in:
parent
f909c91e8a
commit
e40f274878
@ -142,7 +142,7 @@ struct trace_source {
|
|||||||
struct sink *sink; // where to send the trace
|
struct sink *sink; // where to send the trace
|
||||||
/* trace state part below */
|
/* trace state part below */
|
||||||
enum trace_state state;
|
enum trace_state state;
|
||||||
void *lockon_ptr; // what to lockon when lockon is set
|
const void *lockon_ptr; // what to lockon when lockon is set
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _TYPES_TRACE_H */
|
#endif /* _TYPES_TRACE_H */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user