On April 30, 2014 at 4:06 AM Nikos Mavrogiannopoulos <[email protected]> wrote: > On Wed, Apr 30, 2014 at 12:24 AM, dev <[email protected]> wrote: > > I just checked and sure enough the code is trying to > > return a value from a static void function : > [...] > > That right there is just plain wrong. > > How can you return a value from a void function ? > > I believe that comes from c++, no idea if it is in the c99 standard, > but work with gcc and clang. > > > Does this stuff compile with GCC and it seems to work ? > > Apparently yes. I'll modify the code to keep your compiler happy as > well.
patch? What is your change ? Are you actually doing a "return" or just an exit here or what was the intention? A return(0) perhaps? The problem is not "my compiler" but "the code" wherein there are returns for void functions. That is just wrong on all compilers. The fact that this somehow slides past GCC makes me question GCC even more. Perhaps now is a good time to try some pedantic flags on GCC and find possibly hidden bugs that may be all over the place and you just are not seeing them. Better yet, some test platforms are needed on some OS's like Solaris, AIX, HPUX, OpenBSD perhaps. Regardless, getting this gnuTLS code to compile on a commercial UNIX like Solaris is a major incredible pain. Dennis _______________________________________________ Gnutls-help mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnutls-help
