diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index d9a9727e1a4d9328dc56525a2535a273fe669eb1..4f586d60908c7aaee4437398d85862473a888759 100644
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -4080,8 +4080,8 @@ TFReqSendMetrics::doWork(LLTextureFetch * fetcher)
 	//if (! gViewerAssetStatsThread1)
 	//	return true;
 
-	static volatile bool reporting_started(false);
-	static volatile S32 report_sequence(0);
+	static std::atomic_bool reporting_started(false);
+	static std::atomic_int report_sequence(0);
     
 	// In mStatsSD, we have a copy we own of the LLSD representation
 	// of the asset stats. Add some additional fields and ship it off.