Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* lttng-tools-2.14.0-rc1: ODR violation
@ 2025-06-17 11:00 Norbert Lange via lttng-dev
  2025-06-20 16:08 ` Kienan Stewart via lttng-dev
  0 siblings, 1 reply; 2+ messages in thread
From: Norbert Lange via lttng-dev @ 2025-06-17 11:00 UTC (permalink / raw)
  To: lttng-dev

Hello,

enum communication_state exists twice with already diverging definitions.
I am not sure if its a functional issue now, but this sound like it
can cause fun bughunts in the future.

(enabling lto helps finding that kinda stuff)

../../../../src/lib/lttng-ctl/clear.cpp:26:6: warning: type
'communication_state' violates the C++ One Definition Rule [-Wodr]
   26 | enum communication_state {
      |      ^
../../../../src/lib/lttng-ctl/destruction-handle.cpp:25:6: note: an
enum with different value name is defined in another translation unit
   25 | enum communication_state {
      |      ^
../../../../src/lib/lttng-ctl/clear.cpp:29:2: note: name
'COMMUNICATION_STATE_END' differs from name
'COMMUNICATION_STATE_RECEIVE_PAYLOAD' defined in another translation
unit
   29 |  COMMUNICATION_STATE_END,
      |  ^
../../../../src/lib/lttng-ctl/destruction-handle.cpp:28:2: note:
mismatching definition
   28 |  COMMUNICATION_STATE_RECEIVE_PAYLOAD,
      |  ^

Regards, Norbert

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-20 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-17 11:00 lttng-tools-2.14.0-rc1: ODR violation Norbert Lange via lttng-dev
2025-06-20 16:08 ` Kienan Stewart via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox