fix various GCC 8.1.X function pointer warnings #1334
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, and thanks for all the work on HarfBuzz.
I've been working to reduce warnings from the latest GCC, which is fairly strict.
This patch fixes some function parameter / template and other issues.
It'd be great if you consider accepting it.
This patch fixes these warnings:
....r/harfbuzz/hb-debug.hh:130:1: error: explicit specialization ‘void _hb_debug_msg_va(const char*, const void*, const char*, bool, unsigned int, int, const char*, __va_list_tag*) [with int max_level = 0]’ may be missing attributes [-Werror=missing-attributes]
_hb_debug_msg_va<0> (const char *what HB_UNUSED,
and:
.../harfbuzz/hb-set-private.hh:54:60: error: ‘void* memset(void*, int, size_t)’ writing to an object of type ‘hb_set_t::page_t::vector_t’ {aka ‘struct hb_vector_size_t<long long unsigned int, 64>’} with ‘private’ member ‘hb_vector_size_t<long long unsigned int, 64>::u’ [-Werror=class-memaccess]
inline void init1 (void) { memset (&v, 0xff, sizeof (v)); }