pull up r20020 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 1 Oct 2007 23:17:37 +0000 (23:17 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 1 Oct 2007 23:17:37 +0000 (23:17 +0000)
 r20020@cathode-dark-space:  jaltman | 2007-09-29 21:45:10 -0400
 ticket: new
 subject: NIM: disable warning
 component: windows

 Disable the potentially uninitialized variable warning
 for 'ri'.  The variable cannot be used when uninitialized.

ticket: 5790
version_fixed: 1.6.3

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20060 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/identity/ui/credwnd.c

index be2aa644d26cc36f5d68d44ccf0b25f32ebeb34e..a77ea24f3b762ed141b2690d69b8ed0ca44a4e05 100644 (file)
@@ -2387,6 +2387,8 @@ cw_insert_header_cols(khui_credwnd_tbl * tbl) {
 #define CW_ER_GREY  1
 #define CW_ER_SEL   2
 
+#pragma warning(push)
+#pragma warning(disable: 4701)
 void 
 cw_erase_rect(HDC hdc, 
               khui_credwnd_tbl * tbl, 
@@ -2433,7 +2435,7 @@ cw_erase_rect(HDC hdc,
     if(!rie) {
         FillRect(hdc, r_erase, hbr);
     } else {
-        HDC hdcb = CreateCompatibleDC(hdc);
+       HDC hdcb = CreateCompatibleDC(hdc);
         HBITMAP hbmold = SelectObject(hdcb, tbl->kbm_logo_shade.hbmp);
         
         BitBlt(hdc, ri.left, ri.top, ri.right - ri.left, ri.bottom - ri.top,
@@ -2467,6 +2469,7 @@ cw_erase_rect(HDC hdc,
         }
     }
 }
+#pragma warning(pop)
 
 void 
 cw_draw_header(HDC hdc,