[PATCH libXfont 4/4] fstrans: Remove unused foo() function
Jeremy Huddleston Sequoia
jeremyhu at apple.com
Mon May 30 07:53:46 UTC 2016
The point of it seems to have been to silence an unused function warning, but
there's no point if we're just transitioning that to another unused function
warning.
src/fc/fstrans.c:32:20: warning: unused function 'foo' [-Wunused-function]
static inline void foo(void) { (void) is_numeric("a"); }
^
1 warning generated.
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
CC: Keith Packard <keithp at keithp.com>
---
src/fc/fstrans.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/fc/fstrans.c b/src/fc/fstrans.c
index 66bc978..902ef36 100644
--- a/src/fc/fstrans.c
+++ b/src/fc/fstrans.c
@@ -28,5 +28,3 @@
#define FONT_t
#define TRANS_CLIENT
#include <X11/Xtrans/transport.c>
-/* inhibit warning about is_numeric */
-static inline void foo(void) { (void) is_numeric("a"); }
--
2.8.3
More information about the xorg-devel
mailing list