Mailinglist Archive: opensuse-buildservice (233 mails)
| < Previous | Next > |
[opensuse-buildservice] no-return-in-nonvoid-function not always true
- From: Werner Hoch <werner.ho@xxxxxx>
- Date: Thu, 18 Dec 2008 08:25:22 +0100
- Message-id: <200812180825.22897.werner.ho@xxxxxx>
Hi there,
the error message of rpmlint no-return-in-nonvoid-function sometimes
detects code snippets that looks ok to me.
The code snippets moslty looks like this:
------
int func(int i)
{
switch(i) {
case 1: return 4;
case 2: return 5;
}
/* no return after switch statement */
}
Example build logs:
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=freehdl&project=science&repository=openSUSE_11.1
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=glemon&project=science&repository=openSUSE_11.1
Any chances to ignore those errors?
In the thread
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00146.html
in the message
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00156.html
Bernhard Walle suggest to make that errors ignorable.
What's the "right" solution to resolve those rpmlint errors?
* fixing all that errors?
* upstream reporting?
Regards
Werner (werner2101)
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
the error message of rpmlint no-return-in-nonvoid-function sometimes
detects code snippets that looks ok to me.
The code snippets moslty looks like this:
------
int func(int i)
{
switch(i) {
case 1: return 4;
case 2: return 5;
}
/* no return after switch statement */
}
Example build logs:
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=freehdl&project=science&repository=openSUSE_11.1
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=glemon&project=science&repository=openSUSE_11.1
Any chances to ignore those errors?
In the thread
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00146.html
in the message
http://lists.opensuse.org/opensuse-buildservice/2008-11/msg00156.html
Bernhard Walle suggest to make that errors ignorable.
What's the "right" solution to resolve those rpmlint errors?
* fixing all that errors?
* upstream reporting?
Regards
Werner (werner2101)
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |