[exim-dev] exim-4.83_RC2 - expand.c:1881:1: warning: control…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Eugene Istomin
Date:  
À: Exim-dev
Sujet: [exim-dev] exim-4.83_RC2 - expand.c:1881:1: warning: control reaches end of non-void function
Hello,

i'm trying to build exim-4.83_RC2 (i tried a released package & git head) on opensuse build service and discover some C-code errors:

expand.c: In function 'find_variable':
expand.c:1881:1: warning: control reaches end of non-void function [-Wreturn-type]
...
expand.c: In function 'eval_acl.constprop.3':
expand.c:2004:9: warning: 'tmp' is used uninitialized in this function [-Wuninitialized]



This errors leads to unsuccessfull post-build lint:

I: Program is using uninitialized variables.
Note the difference between "is used" and "may be used"
W: exim uninitialized-variable expand.c:2004

I: Program returns random data in a function
E: exim no-return-in-nonvoid-function expand.c:1881

I: Program returns random data in a function
E: exim no-return-in-nonvoid-function expand.c:1881

So, expand.c:1881 generate an error and build was failed.
Here is build log:
https://build.opensuse.org/build/home:conecenter:suse_rev4/openSUSE_13.1/x86_64/exim/_log
---
Best regards,
Eugene Istomin