From 4f9c19f9ba8dc756e732e0f17c1a2b2433eae467 Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Thu, 7 Jul 2011 15:20:29 +0800 Subject: [OUTPUT] Make outc an inline function As "gcc -pedantic" warns, ISO C forbids conditional expressions with only one void side. So the (needslow ? slowpath() : fastpath) code for outc in the !USE_GLIBC_STDIO case might not be portable. More importantly, it's hard to read. Rip it out and replace it with an inline function which should generate the same code. Reported-by: Szabolcs Nagy Signed-off-by: Jonathan Nieder Signed-off-by: Herbert Xu --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 216fc51..ade43e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ * Optimize dash -c "command" to avoid a fork. +2011-05-22 Jonathan Nieder + + * Make outc an inline function. + 2011-05-02 Kalle Olavi Niemitalo * Remove spurious space in descriptions of PS1, PS2, PS4. -- cgit 1.4.1