diff --git a/src/cooling/EAGLE/cooling.c b/src/cooling/EAGLE/cooling.c
index 1d410dc13e82c88abe3ce75f0db8a34322ac0e72..3360bab5bb9ca9b638f84d346b5ce9ea0bc8b9b3 100644
--- a/src/cooling/EAGLE/cooling.c
+++ b/src/cooling/EAGLE/cooling.c
@@ -48,6 +48,7 @@
 #include "space.h"
 #include "units.h"
 
+
 /* Maximum number of iterations for newton
  * and bisection integration schemes */
 static const int newton_max_iterations = 15;
@@ -559,7 +560,9 @@ void cooling_cool_part(const struct phys_const *phys_const,
       Helium_reion_heat_cgs / (dt_cgs * ratefact_cgs);
 
   /* Let's compute the internal energy at the end of the step */
-  double u_final_cgs;
+  /* Initialise to the initial energy to appease compiler; this will never not be
+     overwritten. */
+  double u_final_cgs = u_0_cgs;
 
   /* First try an explicit integration (note we ignore the derivative) */
   const double LambdaNet_cgs =
diff --git a/src/exp10.h b/src/exp10.h
index b995bfdb3e1b6b1cb60bd4b60708413ea6c96f9f..a25edcb3a2fdc90972a03c33087fe812aad8de24 100644
--- a/src/exp10.h
+++ b/src/exp10.h
@@ -25,7 +25,7 @@
 /* Some standard headers. */
 #include <math.h>
 
-#ifndef __GNUC__
+#if !defined(__GNUC__)
 
 /* Local headers. */
 #include "inline.h"
@@ -60,4 +60,11 @@ __attribute__((always_inline, const)) INLINE static float exp10f(
 
 #endif /* __GNUC__ */
 
+#if defined(__clang__)
+
+#define exp10 __exp10
+#define exp10f __exp10f
+
+#endif /* __clang__ */
+
 #endif /* SWIFT_EXP10_H */