Re: [PATCH 1/2] inline constant return from error() function
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 11, 2014, 07:13 UTC
- Message-ID
- <536f22fd76455_6535d01308cb@nysa.notmuch>
- In-Reply-To
- <xmqqppjqczhq.fsf@gitster.dls.corp.google.com>
Junio C Hamano wrote:
> That's kind of W*A*T magic, and I generally try to avoid magic, as > long as it solves your "can we make both -O2 with new compilers and > -O3 happy?" I wouldn't complain ;-)
In case anybody is looking for a non-hacky way of doing this that doesn't depend on the gcc version of the week, this is how I silenced the warnings in git-fc:
https://github.com/felipec/git/commit/e14ca39ba0092f0305d5fb347e20b829f736b29b
-- Felipe Contreras