avifil32: Drop the 'register' storage-class specifier.

Michael Stefaniuc mstefani at redhat.de
Thu Jun 21 06:17:51 CDT 2012


---
It is just a weak optimization hint (1) that gcc ignores (2) for all
practical purposes of this code.

(1) 6.7.1 "Storage-class specifiers"
    http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf 

(2) Email thread http://gcc.gnu.org/ml/gcc/2010-05/msg00098.html



 dlls/avifil32/acmstream.c |    2 +-
 dlls/avifil32/getframe.c  |    2 +-
 dlls/avifil32/tmpfile.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/avifil32/acmstream.c b/dlls/avifil32/acmstream.c
index 50e868b..845ea16 100644
--- a/dlls/avifil32/acmstream.c
+++ b/dlls/avifil32/acmstream.c
@@ -224,7 +224,7 @@ static HRESULT WINAPI ACMStream_fnCreate(IAVIStream *iface, LPARAM lParam1,
   /* check for swapped parameters */
   if ((LPVOID)lParam1 != NULL &&
       ((LPAVICOMPRESSOPTIONS)lParam1)->fccType == streamtypeAUDIO) {
-    register LPARAM tmp = lParam1;
+    LPARAM tmp = lParam1;
 
     lParam1 = lParam2;
     lParam2 = tmp;
diff --git a/dlls/avifil32/getframe.c b/dlls/avifil32/getframe.c
index 547f340..c5b2bd4 100644
--- a/dlls/avifil32/getframe.c
+++ b/dlls/avifil32/getframe.c
@@ -430,7 +430,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
     }
 
     if (lpBits == NULL) {
-      register DWORD size = This->lpOutFormat->biClrUsed * sizeof(RGBQUAD);
+      DWORD size = This->lpOutFormat->biClrUsed * sizeof(RGBQUAD);
 
       size += This->lpOutFormat->biSize + This->lpOutFormat->biSizeImage;
       This->lpOutFormat = HeapReAlloc(GetProcessHeap(), 0, This->lpOutFormat, size);
diff --git a/dlls/avifil32/tmpfile.c b/dlls/avifil32/tmpfile.c
index 3bdd50a..62d283b 100644
--- a/dlls/avifil32/tmpfile.c
+++ b/dlls/avifil32/tmpfile.c
@@ -258,7 +258,7 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, const PAVISTREAM *ppStreams)
       tmpFile->fInfo.dwSuggestedBufferSize = sInfo.dwSuggestedBufferSize;
 
     {
-      register DWORD tmp;
+      DWORD tmp;
 
       tmp = MulDiv(AVIStreamSampleToTime(ppStreams[i], sInfo.dwLength),
                    tmpFile->fInfo.dwScale, tmpFile->fInfo.dwRate * 1000);
-- 
1.7.7.6



More information about the wine-patches mailing list