[gnutls-help] gnutls-3.2.13 : another code bug "base64.c", line 99: error: void function cannot return value
Matthew Lai
m at matthewlai.ca
Wed Apr 30 20:18:30 CEST 2014
On 30/04/2014 10:40 AM, Nikos Mavrogiannopoulos wrote:
>> 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.
> and is that syntax forbidden by C99? Most major compilers support that
> syntax due to C++, so it may simply be a limitation of the solaris
> compiler.
Looks like it is valid C++, but not valid C99.
http://stackoverflow.com/questions/3383090/is-returning-void-valid-code
Matthew
More information about the Gnutls-help
mailing list