Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-sound/sooperlooper, return statement with value
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Jul 15, 2017 2:36 pm    Post subject: media-sound/sooperlooper, return statement with value Reply with quote

media-sound/sooperlooper-1.7.3-r1 throws this error:
Code:

/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:108:39: error: return-statement with a value, in function returning 'void' [-fpermissive]
     { return functor_(_A_arg1, _A_arg2); }


Is there a way to fix this?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21602

PostPosted: Sat Jul 15, 2017 3:35 pm    Post subject: Reply with quote

Yes. Do not return the result of that function. The easiest way to eliminate the error message is to remove the return keyword. However, without larger context, I cannot say whether this is the right fix.

Given the names involved, functor_ might be chosen by the caller, in which case the error is that the user (likely something in media-sound/sooperlooper) is providing a callback with a non-void return, but the callback should be void. If so, removing return is wrong and the fix is to pass a compatible callback.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Jul 15, 2017 11:36 pm    Post subject: Reply with quote

Thanks, Hu. I will check that out and hopefully create a patch.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum