Should I worry about “Conditional jump or move depends on uninitialised value(s)”?

后端 未结 6 2060
醉酒成梦
醉酒成梦 2021-01-06 06:04

If you\'ve used Memcheck (from Valgrind) you\'ll probably be familiar with this message...

Conditional jump or move depends on uninitialized value(s)<

6条回答
  •  迷失自我
    2021-01-06 06:30

    It would be very helpful if you can post more code, especially from the part where valgrind thinks the error is.

    If this happens every time you instantiate the class, you probably forgot to initialize one of the members in the constructor.

    And yes: You should worry about this error, those guys can really bite you.

提交回复
热议问题