On Dienstag 21 April 2009 13:25:43 Pavol Rusnak wrote:
Sascha 'saigkill' Manns wrote:
But now it hangs on the compiler Errors. He said me: E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter .cpp:140, 134, 128, 122, 111, 105, 99, 93, 87, 81, 75, 69, 63, 57 E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browsermode l.cpp:222, 195
I've tried to add just "return 0" at the End of each function. But that not works.
[ 62%] Building CXX object libqinfinity/CMakeFiles/qinfinity.dir/browseriter.cpp.o /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter .cpp: In member function 'QInfinity::BrowserIter& QInfinity::BrowserIter::operator=(const QInfinity::BrowserIter&)': /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter .cpp:57: error: invalid initialization of non-const reference of type 'QInfinity::BrowserIter&' from a temporary of type 'int'
Has anyone an Idea?
The function does not have int or pointer as a return value. It returns reference. You could create an empty QInfinity::BrowserIter object (not sure if this is possible) and return a reference to it (&obj). Much more great solution would be to report to upstream so they could fix the code (handling the program flow).
This is the code from them. BrowserIter &BrowserIter::operator=( const BrowserIter &other ) { m_infBrowser = other.infBrowser(); m_infBrowserIter.node_id = other.infBrowserIter()->node_id; m_infBrowserIter.node = other.infBrowserIter()->node; return ; } What must i change? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org