- '-Os' fpc optimization compiler flag replaced with '-O2'
Note 1: '-Os' cause crash on device. Seems like fpc bug.
Note 2: Higher optimization flags ('-O3' and '-O4') has bad side effects, like wrong drawing of hogs.
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}