Message284781
Compilers are not required to elide static functions which are unused.
Some compilers, such as Solaris Studio, always emits the function, even
if the function does not get called within the translation unit. This
becomes problematic when a static inline function calls a non-existent
function; thus, resulting in (dynamic or static) link time errors.
Given that 'blake2' is never referenced nor called, remove the
definition of this function to increase portability for non-Linux
toolchains.
https://blogs.oracle.com/d/entry/inline_functions_in_c also indicates that this is case for Solaris Studio as well. |
|
Date |
User |
Action |
Args |
2017-01-05 22:38:51 | ericvw | set | recipients:
+ ericvw, christian.heimes |
2017-01-05 22:38:51 | ericvw | set | messageid: <1483655931.95.0.807787917048.issue29171@psf.upfronthosting.co.za> |
2017-01-05 22:38:51 | ericvw | link | issue29171 messages |
2017-01-05 22:38:51 | ericvw | create | |
|