diff mm7_2.cpp @ 1409:c9e3b93ec570

Highlighted locations with "using uninitialized variable" warning.
author Nomad
date Fri, 26 Jul 2013 21:16:51 +0200
parents 204cce84300b
children 38df78aba732
line wrap: on
line diff
--- a/mm7_2.cpp	Fri Jul 26 18:11:36 2013 +0600
+++ b/mm7_2.cpp	Fri Jul 26 21:16:51 2013 +0200
@@ -572,6 +572,7 @@
     v4 /= 2;
     goto LABEL_24;
   }
+  __debugbreak(); // warning C4700: uninitialized local variable 'v27' used
   if ( uDialogueType == 88 )
     num_monsters = 2 * v4;
   else
@@ -2339,6 +2340,7 @@
   LOWORD(v7) = v5 & 0xE0;
   v12 = v7 + v11;
   LOWORD(v7) = v8 & 0xE0;
+  __debugbreak(); // warning C4700: uninitialized local variable 'v10' used
   return (PID_TYPE(v8) + PID_TYPE(v5) + PID_TYPE(a3a) + PID_TYPE(v6)) | (v7 + v12) | ((v8 & 0x1C00)
                                                                     + (v5 & 0x1C00)
                                                                     + v9
@@ -2993,9 +2995,9 @@
     case 0x80:  return 3;     // Master
     case 0x40:  return 2;     // Expert
     case 0x00:  return 1;     // Normal
-    default:
-      assert(false);
-  }
+  }
+  assert(false);
+  return 0;
 }
 
 //----- (0045828B) --------------------------------------------------------