Skip to content

Instantly share code, notes, and snippets.

@jmazzi
Created July 11, 2013 18:07
Show Gist options
  • Save jmazzi/5977744 to your computer and use it in GitHub Desktop.
Save jmazzi/5977744 to your computer and use it in GitHub Desktop.
0.4 ➤ make
cd src/ && make -f Makefile
clang++ -c -Xclang -include-pch -Xclang ../build/KeePassX.pch/c++ -pipe -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt/4.8.4/mkspecs/unsupported/macx-clang -I. -I/usr/local/Cellar/qt/4.8.4/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/lib/QtXml.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.4/include -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -F/usr/local/Cellar/qt/4.8.4/lib -o ../build/moc_Kdb3Database.o ../build/moc/moc_Kdb3Database.cpp
../build/moc/moc_Kdb3Database.cpp:63:21: error: ambiguous conversion from derived class 'const Kdb3Database' to base class 'QObject':
class Kdb3Database -> class ICustomIcons -> class QObject
class Kdb3Database -> class IDatabase -> class QObject
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
^~~~~
../build/moc/moc_Kdb3Database.cpp:63:50: error: ambiguous conversion from derived class 'const Kdb3Database' to base class 'QObject':
class Kdb3Database -> class ICustomIcons -> class QObject
class Kdb3Database -> class IDatabase -> class QObject
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
^~~~~
In file included from ../build/moc/moc_Kdb3Database.cpp:1:
In file included from /Users/justin/Downloads/keepassx-code/branches/0.4/src/keepassx.h:40:
In file included from /usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers/QApplication:1:
In file included from /usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers/qapplication.h:45:
In file included from /usr/local/Cellar/qt/4.8.4/include/QtCore/qcoreapplication.h:45:
In file included from /usr/local/Cellar/qt/4.8.4/include/QtCore/qobject.h:50:
/usr/local/Cellar/qt/4.8.4/include/QtCore/qlist.h:431:33: warning: delete called on 'Kdb3Database::EntryHandle' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
while(from != to) --to, delete reinterpret_cast<T*>(to->v);
^
/usr/local/Cellar/qt/4.8.4/include/QtCore/qlist.h:757:5: note: in instantiation of member function 'QList<Kdb3Database::EntryHandle>::node_destruct' requested here
node_destruct(reinterpret_cast<Node *>(data->array + data->begin),
^
/usr/local/Cellar/qt/4.8.4/include/QtCore/qlist.h:732:9: note: in instantiation of member function 'QList<Kdb3Database::EntryHandle>::free' requested here
free(d);
^
../build/moc/../../src/Kdb3Database.h:137:10: note: in instantiation of member function 'QList<Kdb3Database::EntryHandle>::~QList' requested here
virtual ~Kdb3Database(){};
^
In file included from ../build/moc/moc_Kdb3Database.cpp:1:
In file included from /Users/justin/Downloads/keepassx-code/branches/0.4/src/keepassx.h:40:
In file included from /usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers/QApplication:1:
In file included from /usr/local/Cellar/qt/4.8.4/lib/QtGui.framework/Versions/4/Headers/qapplication.h:45:
In file included from /usr/local/Cellar/qt/4.8.4/include/QtCore/qcoreapplication.h:45:
In file included from /usr/local/Cellar/qt/4.8.4/include/QtCore/qobject.h:50:
/usr/local/Cellar/qt/4.8.4/include/QtCore/qlist.h:431:33: warning: delete called on 'Kdb3Database::GroupHandle' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
while(from != to) --to, delete reinterpret_cast<T*>(to->v);
^
/usr/local/Cellar/qt/4.8.4/include/QtCore/qlist.h:757:5: note: in instantiation of member function 'QList<Kdb3Database::GroupHandle>::node_destruct' requested here
node_destruct(reinterpret_cast<Node *>(data->array + data->begin),
^
/usr/local/Cellar/qt/4.8.4/include/QtCore/qlist.h:732:9: note: in instantiation of member function 'QList<Kdb3Database::GroupHandle>::free' requested here
free(d);
^
../build/moc/../../src/Kdb3Database.h:137:10: note: in instantiation of member function 'QList<Kdb3Database::GroupHandle>::~QList' requested here
virtual ~Kdb3Database(){};
^
2 warnings and 2 errors generated.
make[1]: *** [../build/moc_Kdb3Database.o] Error 1
make: *** [sub-src-make_default] Error 2
0.4 ➤
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment