Commits

Anonymous committed 32adbba

Fixes for g++ 4.3. Renamed 'zero' to 'empty_pod'

  • Participants
  • Parent commits f933d37

Comments (0)

Files changed (2)

src/platforms/mingw/slamfile

-libs : common : bfd iberty psapi imagehlp
+libs : common : bfd iberty imagehlp
     #endif // __MINGW32__
 
     // g++ spouts warnings if you use {0} to initialize PODs. So we use this instead:
-    struct
+    const struct
     {
         template<typename POD>
         operator POD () const { POD p; std::memset(&p, 0, sizeof p); return p; }
     }
-    zero;
+    empty_pod = { };
 
     // Wraps a FARPROC. Implicitly convertible to any kind of pointer-to-function.
     // Avoids having reinterpret casts all over the place.
         bfd_context bfdc;
         #endif
 
-        STACKFRAME frame = zero;
-        CONTEXT context = zero;
+        STACKFRAME frame = empty_pod;
+        CONTEXT context = empty_pod;
         context.ContextFlags = CONTEXT_FULL;
 
         windows_dll kernel32("kernel32.dll");
     {
     }
 
-
     std::ostream &operator<< (std::ostream &out, const stack_frame &frame)
     {
         return out << frame.instruction << ": " << frame.function << " in " << frame.module;