VirtualBox

Changeset 24669 in vbox for trunk


Ignore:
Timestamp:
Nov 15, 2009 1:34:17 PM (15 years ago)
Author:
vboxsync
Message:

DevACPI.cpp: shut up gcc warning about size() using m_pbData before it is initialized in AcpiTableMADT... cool stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r24078 r24669  
    544544    AcpiTableMADT(uint32_t cCpus)
    545545    {
    546         m_cCpus = cCpus;
     546        m_cCpus  = cCpus;
     547        m_pbData = NULL;                /* size() uses this and gcc will complain if not initilized. */
    547548        uint32_t cb = size();
    548549        m_pbData = (uint8_t *)RTMemAllocZ(cb);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette