Bug 543034: Attempt to workaround msvc bug "fatal error C1001: An internal error has occurred in the compiler" by disabling optimizations for the tagged block of code. r=gavin

This commit is contained in:
Daniel Holbert 2010-02-02 14:05:47 -08:00
Родитель 1035788e91
Коммит f6c224ac50
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -378,6 +378,12 @@ nsAnnotationService::SetPageAnnotation(nsIURI* aURI,
}
// XXX for some reason, this next block of code seems to kill MSVC (bug 543034)
#ifdef _MSC_VER
#pragma optimize("", off)
#endif
NS_IMETHODIMP
nsAnnotationService::SetItemAnnotation(PRInt64 aItemId,
const nsACString& aName,
@ -456,6 +462,10 @@ nsAnnotationService::SetItemAnnotation(PRInt64 aItemId,
return NS_ERROR_NOT_IMPLEMENTED;
}
// End workaround for bug 543034
#ifdef _MSC_VER
#pragma optimize("", on)
#endif
NS_IMETHODIMP
nsAnnotationService::SetPageAnnotationString(nsIURI* aURI,