]> granicus.if.org Git - spl/commit
glibc 2.25 compat: remove assert(X=Y)
authorOlaf Faaland <faaland1@llnl.gov>
Mon, 3 Apr 2017 20:33:49 +0000 (13:33 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 3 Apr 2017 20:33:48 +0000 (13:33 -0700)
commit481762f6a903dd87fb2f166cce6ab8058b00f734
treeffc79bd4ec2707009ee8826a40da301ba0f8a290
parentbf8abea4dade111bdf3aeae30bd4bd75d49aca70
glibc 2.25 compat: remove assert(X=Y)

The assert() related definitions in glibc 2.25 were altered to warn
about assert(X=Y) when -Wparentheses is used.  See
https://abi-laboratory.pro/tracker/changelog/glibc/2.25/log.html

lib/list.c used this construct to set the value of a magic field which
is defined only when debugging.

Replaced the assert()s with #ifndef/#endifs.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #610
lib/list.c