[MDEV-8567] return-statement with a value, in function returning 'void' Created: 2015-08-03  Updated: 2015-08-04  Resolved: 2015-08-04

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.1.6
Fix Version/s: N/A

Type: Bug Priority: Trivial
Reporter: Michal Hrusecky Assignee: Sergei Golubchik
Resolution: Not a Bug Votes: 0
Labels: None

Attachments: File mariadb-10.1.6-no-return-in-nonvoid-function.patch    

 Description   

/home/abuild/rpmbuild/BUILD/mariadb-10.1.6/sql/sql_plugin.cc:3623:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return false;
            ^



 Comments   
Comment by Sergei Golubchik [ 2015-08-03 ]

It seems to me that it's an opensuse patch that adds "return 0", I don't see it in our code.
And even your attached patch says "PATCH-P0-HACK-UPSTREAM: Silence compilator about no return".

Comment by Michal Hrusecky [ 2015-08-04 ]

Ah, I'm terribly sorry, you are right, it was caused by patch that was fixing previous state but you fixed it in the upstream and I didn't noticed. Sorry for the noise, this is invalid.

Comment by Sergei Golubchik [ 2015-08-04 ]

Sure, no problem. Closing...

Generated at Thu Feb 08 07:28:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.