Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#25 songview.cpp:372:1: error: no return statement in function r

open
nobody
None
5
2012-09-16
2011-05-25
Dominique Michel
No

I get the following error when building the last svn code:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:372:1: error: no return statement in function returning non-void
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp: In member function ‘void SongView::slotCut()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:382:69: warning: ‘void QClipboard::setData(QMimeSource, QClipboard::Mode)’ is deprecated (declared at /usr/include/qt4/QtGui/qclipboard.h:88)
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp: In member function ‘void SongView::slotCopy()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:393:69: warning: ‘void QClipboard::setData(QMimeSource
, QClipboard::Mode)’ is deprecated (declared at /usr/include/qt4/QtGui/qclipboard.h:88)
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp: In member function ‘void SongView::slotPaste()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:400:56: warning: ‘QMimeSource* QClipboard::data(QClipboard::Mode) const’ is deprecated (declared at /usr/include/qt4/QtGui/qclipboard.h:87)
make[2]: [kguitar/CMakeFiles/kguitarpart.dir/songview.o] Error 1
make[2]:
Waiting for unfinished jobs....
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/ui/chord/chordeditor.cpp: In member function ‘void ChordEditor::detectChord()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/ui/chord/chordeditor.cpp:478:4: warning: ‘bass’ may be used uninitialized in this function
make[1]: [kguitar/CMakeFiles/kguitarpart.dir/all] Error 2
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:372:1: error: no return statement in function returning non-void
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp: In member function ‘void SongView::slotCut()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:382:69: warning: ‘void QClipboard::setData(QMimeSource
, QClipboard::Mode)’ is deprecated (declared at /usr/include/qt4/QtGui/qclipboard.h:88)
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp: In member function ‘void SongView::slotCopy()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:393:69: warning: ‘void QClipboard::setData(QMimeSource
, QClipboard::Mode)’ is deprecated (declared at /usr/include/qt4/QtGui/qclipboard.h:88)
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp: In member function ‘void SongView::slotPaste()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/songview.cpp:400:56: warning: ‘QMimeSource* QClipboard::data(QClipboard::Mode) const’ is deprecated (declared at /usr/include/qt4/QtGui/qclipboard.h:87)
make[2]:
[kguitar/CMakeFiles/kguitarpart.dir/songview.o] Error 1
make[2]: Waiting for unfinished jobs....
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/ui/chord/chordeditor.cpp: In member function ‘void ChordEditor::detectChord()’:
/var/tmp/portage/media-sound/kguitar-9999/work/kde4/kguitar/ui/chord/chordeditor.cpp:478:4: warning: ‘bass’ may be used uninitialized in this function
make[1]:
[kguitar/CMakeFiles/kguitarpart.dir/all] Error 2

This is with a live ebuild I made for the pro-audio gentoo overlay. I get the same result with the older ebuild.

sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.5.2
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
sys-libs/glibc: 2.13-r2

Discussion