The re-definition error is thrown only when 2 different values are assigned to the same #define variable. But in this case, the same value is defined twice... hence the compiler doesn't throw error.
Thank you :) Revanth Rajashekar -----Original Message----- From: Scott Bauer [mailto:[email protected]] Sent: Wednesday, August 14, 2019 10:08 PM To: Rajashekar, Revanth <[email protected]> Cc: [email protected]; Derrick, Jonathan <[email protected]> Subject: Re: [PATCH 3/3] block: sed-opal: OPAL_METHOD_LENGTH defined twice On Tue, Aug 13, 2019 at 03:43:40PM -0600, Revanth Rajashekar wrote: > Signed-off-by: Revanth Rajashekar <[email protected]> Reviewed-by: Scott Bauer <[email protected]> Two things, Can we also change the title of this commit to: "Removed duplicate OPAL_METHOD_LENGTH definition" 2nd, I'm dumb as hell now adays, why doesn't this throw a compiler error for multiple declarations?
