Skip to content
Snippets Groups Projects
Commit 86d8bf11 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

ELF32_R_x vs EL64_R_x: compiler not smart enough to infer path safety

If we use the ELF64 and ELF32 _R_x macros in the relevant branches of
a switch( __ELF_NATIVE_CLASS ) case statement we're guaranteed to be
safe but the compiler isn't smart enough to deduce this and emits some
warnings about bit shift overflows.

Use #if __ELF_NATIVE_CLASS == x code selection instead.
parent a3dafa58
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment