diff --git a/src/autodetection.c b/src/autodetection.c index e4e121f..0258388 100644 --- a/src/autodetection.c +++ b/src/autodetection.c @@ -249,7 +249,9 @@ int32_t autodetect_interface(void * handle, const char * suffix) { // those. build_symbol_name(symbol_name, "dpotrf_", suffix); void * dpotrf = lookup_symbol(handle, symbol_name); - if (ilaver != NULL || dpotrf != NULL) { + // NB: if `ilaver` were non-NULL we'd already have returned above, so it's + // guaranteed NULL here; only `dpotrf` matters. + if (dpotrf != NULL) { return autodetect_lapack_interface_dpotrf(dpotrf); } diff --git a/src/config.c b/src/config.c index b558fc2..25c1f12 100644 --- a/src/config.c +++ b/src/config.c @@ -64,7 +64,8 @@ void clear_forwarding_mark(int32_t symbol_idx, int32_t interface) { } } -void clear_other_forwards(int skip_idx, uint8_t * forwards, int32_t interface) { +// Only used within this file; keep it out of the library's exported symbols. +static void clear_other_forwards(int skip_idx, uint8_t * forwards, int32_t interface) { for (int idx=0; idx