[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [Pcc] error: returning value from void function
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2015-09-08 18:25:44
Message-ID: 55EF2828.9030307 () ludd ! ltu ! se
[Download RAW message or body]

Den 2015-09-07 kl. 22:08, skrev Iain Hibbert:
> Hi
>
> I think this is allowed?
>
> static inline void foo(int a)
> {
> }
>
> void bar(int a)
> {
> 	return foo(a);
> }
>
> in any case, pcc allows it
>
> % pcc -c test.c
>
> except when optimisation is turned on
>
> % pcc -c -xtemps -xinline test.c
> test.c, line 7: warning: returning value from void function
>
Well, it still allows it, just grumbles a bit :-)
Anyway, now it do not do that anymore either.

-- Ragge
_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic