From 6fc3c9c8689e754869097b797c6d9dfe101cc182 Mon Sep 17 00:00:00 2001 From: syund <35611307+syund@users.noreply.github.com> Date: Fri, 22 Oct 2021 20:40:43 -0400 Subject: [PATCH] Inline pow_neg - removes build warning (#891) --- src/gps/GeoCoord.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gps/GeoCoord.h b/src/gps/GeoCoord.h index f3795c84..b3d21870 100644 --- a/src/gps/GeoCoord.h +++ b/src/gps/GeoCoord.h @@ -14,7 +14,7 @@ // Helper functions // Raises a number to an exponent, handling negative exponents. -static double pow_neg(double base, double exponent) { +static inline double pow_neg(double base, double exponent) { if (exponent == 0) { return 1; } else if (exponent > 0) {