Skip to content

Commit f37ebc3

Browse files
committed
print_integer_cst_to_buf: prevent -Werror=unused-function on gcc 4.9 and earlier
1 parent ee7f60f commit f37ebc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gcc-python-tree.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ PyGccConstructor_get_elements(PyObject *self, void *closure)
686686
return NULL;
687687
}
688688

689+
#if (GCC_VERSION >= 5000)
690+
689691
static void
690692
print_integer_cst_to_buf(tree int_cst, char *buf, tree type)
691693
{
@@ -701,6 +703,8 @@ print_integer_cst_to_buf(tree int_cst, char *buf, tree type)
701703
#endif
702704
}
703705

706+
#endif /* #if (GCC_VERSION >= 5000) */
707+
704708
PyObject *
705709
PyGcc_int_from_int_cst(tree int_cst)
706710
{

0 commit comments

Comments
 (0)