diff --git a/BaseLib/Error.h b/BaseLib/Error.h
index e563d4b90179f97151170c03a09f0bc24278f0d0..f464b25cbc1c5f85271fd86d5b3c351c3f66307d 100644
--- a/BaseLib/Error.h
+++ b/BaseLib/Error.h
@@ -56,9 +56,9 @@ template <typename Msg>
 
 #define OGS_STR(x) #x
 #define OGS_STRINGIFY(x) OGS_STR(x)
-#define OGS_LOCATION                              \
-    " at " + BaseLib::extractBaseName(__FILE__) + \
-        ", line " OGS_STRINGIFY(__LINE__)
+#define OGS_LOCATION                               \
+    (" at " + BaseLib::extractBaseName(__FILE__) + \
+     ", line " OGS_STRINGIFY(__LINE__))
 
 #define OGS_FATAL(fmt, ...)                                           \
     BaseLib::detail::error_impl(BaseLib::format(fmt, ##__VA_ARGS__) + \