From: Jonathan Rajotte Date: Mon, 13 Jan 2020 20:40:15 +0000 (-0500) Subject: Fix: automatic enum value overwrites existing error code value X-Git-Tag: v2.12.0-rc1~73 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=5129845658a1d277c22ca1b194ab59afa2d672f9;hp=5129845658a1d277c22ca1b194ab59afa2d672f9;p=lttng-tools.git Fix: automatic enum value overwrites existing error code value Automatic enum value are generated using the last value and incrementing it. Having backward compat assignation before the LTTNG_ERR_NR would end up overwriting the error string since the LTTNG_ERR_NR value would be LTTNG_ERR_PID_NOT_TRACKED + 1. Signed-off-by: Jonathan Rajotte Change-Id: I4076866a28961fa49eed018e8249d2cd72979a84 Signed-off-by: Jérémie Galarneau ---