Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

不正确的编译 warning

  • QHBoxLayout  *lay;
    for(uint i=0;  i<16;  i++)
        if(i%4 == 0)
            lay = new QHBoxLayout;
        lay->addWidget(new QLabel("***"));

    /home/neeme/vivere/ocean/Mint/FFreqBus.cpp:25: warning: ‘lay’ may be used uninitialized in this function [-Wmaybe-uninitialized]

    请问怎样调整代码,才能令QT不再产生这样的提示呢? 谢谢!

Log in to reply