diff options
Diffstat (limited to 'Build/source/texk/web2c/synctexdir/synctex_parser.c')
-rw-r--r-- | Build/source/texk/web2c/synctexdir/synctex_parser.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/synctexdir/synctex_parser.c b/Build/source/texk/web2c/synctexdir/synctex_parser.c index 60988288b85..deb02c8fce5 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_parser.c +++ b/Build/source/texk/web2c/synctexdir/synctex_parser.c @@ -773,7 +773,6 @@ static synctex_reader_p synctex_reader_init_with_output_file(synctex_reader_p re (char *)_synctex_malloc(reader->size+1); /* one more character for null termination */ if (NULL == reader->start) { _synctex_error("! malloc error in synctex_reader_init_with_output_file."); - bailey: #ifdef SYNCTEX_DEBUG return reader; #else @@ -918,6 +917,7 @@ static void _synctex_free_node(synctex_node_p node) { * It is not owned by its parent, unless it is its first child. * This destructor is for all handles. */ +/* static void _synctex_free_handle_old(synctex_node_p handle) { if (handle) { _synctex_free_handle_old(__synctex_tree_sibling(handle)); @@ -926,6 +926,7 @@ static void _synctex_free_handle_old(synctex_node_p handle) { } return; } +*/ static void _synctex_free_handle(synctex_node_p handle) { if (handle) { synctex_node_p n = handle; @@ -3658,7 +3659,7 @@ static char * _synctex_abstract_proxy(synctex_node_p node) { synctex_node_line(node), _synctex_data_h(node), _synctex_data_v(node), - node, + (void*)node, // Fix GCC warning: %p expects a void* according to POSIX _synctex_node_abstract(N)); } return abstract; @@ -3742,7 +3743,7 @@ static char * _synctex_abstract_proxy_hbox(synctex_node_p node) { synctex_node_width(node), synctex_node_height(node), synctex_node_depth(node), - node + (void*)node // Fix GCC warning: %p expects a void* according to POSIX SYNCTEX_PRINT_CHARINDEX_WHAT); } return abstract; @@ -5490,7 +5491,6 @@ content_loop: # pragma mark + SCAN KERN # endif ns = _synctex_parse_new_kern(scanner); - continue_scan: if (ns.status == SYNCTEX_STATUS_OK) { if (child) { _synctex_node_set_sibling(child,ns.node); @@ -7252,7 +7252,7 @@ SYNCTEX_INLINE static synctex_iterator_p _synctex_iterator_new(synctex_node_p re iterator->count0 = iterator->count = count; } return iterator; -}; +} void synctex_iterator_free(synctex_iterator_p iterator) { if (iterator) { @@ -8434,7 +8434,7 @@ struct synctex_updater_t { int length; /* the number of chars appended */ }; -__attribute__((__format__ (__printf__, 2, 3))) +SYNCTEX_ATTRIBUTE_FORMAT_PRINTF(2, 3) static int _synctex_updater_print(synctex_updater_p updater, const char * format, ...) { int result = 0; if (updater) { @@ -8471,7 +8471,7 @@ static int vasprintf(char **ret, /** * gzvprintf is not available until OSX 10.10 */ -__attribute__((__format__ (__printf__, 2, 3))) +SYNCTEX_ATTRIBUTE_FORMAT_PRINTF(2, 3) static int _synctex_updater_print_gz(synctex_updater_p updater, const char * format, ...) { int result = 0; if (updater) { |