diff --git a/indra/llmath/v4color.h b/indra/llmath/v4color.h
index 00fc9553844dc0118418f5e365e488d5741489bb..175edf147142fcef08068d1b8efb80a905ed4871 100644
--- a/indra/llmath/v4color.h
+++ b/indra/llmath/v4color.h
@@ -676,6 +676,8 @@ inline const LLColor4 linearColor4(const LLColor4 &a)
     linearColor.mV[1] = sRGBtoLinear(a.mV[1]);
     linearColor.mV[2] = sRGBtoLinear(a.mV[2]);
     linearColor.mV[3] = a.mV[3];
+
+    return linearColor;
 }
 
 #endif