Message <Context> the __declspec(thread) storage class modifier cannot be used with a function type. Modifier is ignored. Description Only objects can be declared with thread-local storage. The storage class modifier is ignored when applied to an identifier with function type. User Action Either remove the storage class modifier or change the type to one that is valid for __declspec(thread).