Skip to content

Commit

Permalink
unused-parameter in test/fuzzing/hb-draw-fuzzer.cc
Browse files Browse the repository at this point in the history
../test/fuzzing/hb-draw-fuzzer.cc:19:28: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_move_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
                           ^
../test/fuzzing/hb-draw-fuzzer.cc:22:10: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
          void *user_data)
                ^
../test/fuzzing/hb-draw-fuzzer.cc:31:28: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_line_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
                           ^
../test/fuzzing/hb-draw-fuzzer.cc:34:10: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
          void *user_data)
                ^
../test/fuzzing/hb-draw-fuzzer.cc:44:33: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_quadratic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
                                ^
../test/fuzzing/hb-draw-fuzzer.cc:46:15: error: unused parameter 'control_x' [-Werror,-Wunused-parameter]
               float control_x, float control_y,
                     ^
../test/fuzzing/hb-draw-fuzzer.cc:46:32: error: unused parameter 'control_y' [-Werror,-Wunused-parameter]
               float control_x, float control_y,
                                      ^
../test/fuzzing/hb-draw-fuzzer.cc:48:15: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
               void *user_data)
                     ^
../test/fuzzing/hb-draw-fuzzer.cc:58:29: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_cubic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
                            ^
../test/fuzzing/hb-draw-fuzzer.cc:60:11: error: unused parameter 'control1_x' [-Werror,-Wunused-parameter]
           float control1_x, float control1_y,
                 ^
../test/fuzzing/hb-draw-fuzzer.cc:60:29: error: unused parameter 'control1_y' [-Werror,-Wunused-parameter]
           float control1_x, float control1_y,
                                   ^
../test/fuzzing/hb-draw-fuzzer.cc:61:11: error: unused parameter 'control2_x' [-Werror,-Wunused-parameter]
           float control2_x, float control2_y,
                 ^
../test/fuzzing/hb-draw-fuzzer.cc:61:29: error: unused parameter 'control2_y' [-Werror,-Wunused-parameter]
           float control2_x, float control2_y,
                                   ^
../test/fuzzing/hb-draw-fuzzer.cc:63:11: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
           void *user_data)
                 ^
../test/fuzzing/hb-draw-fuzzer.cc:73:31: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_close_path (hb_draw_funcs_t *dfuncs, void *draw_data_,
                              ^
../test/fuzzing/hb-draw-fuzzer.cc:75:13: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
             void *user_data)
                   ^
16 errors generated.
  • Loading branch information
serval2412 authored and khaledhosny committed Oct 6, 2024
1 parent 8de0d91 commit e157205
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/fuzzing/hb-draw-fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ struct _draw_data_t

#include <cstdio>
static void
_move_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
_move_to (hb_draw_funcs_t *dfuncs HB_UNUSED, void *draw_data_,
hb_draw_state_t *st,
float to_x, float to_y,
void *user_data)
void *user_data HB_UNUSED)
{
_draw_data_t *draw_data = (_draw_data_t *) draw_data_;
assert (!st->path_open);
Expand All @@ -28,10 +28,10 @@ _move_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
}

static void
_line_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
_line_to (hb_draw_funcs_t *dfuncs HB_UNUSED, void *draw_data_,
hb_draw_state_t *st,
float to_x, float to_y,
void *user_data)
void *user_data HB_UNUSED)
{
_draw_data_t *draw_data = (_draw_data_t *) draw_data_;
assert (st->path_open);
Expand All @@ -41,11 +41,11 @@ _line_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
}

static void
_quadratic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
_quadratic_to (hb_draw_funcs_t *dfuncs HB_UNUSED, void *draw_data_,
hb_draw_state_t *st,
float control_x, float control_y,
float control_x HB_UNUSED, float control_y HB_UNUSED,
float to_x, float to_y,
void *user_data)
void *user_data HB_UNUSED)
{
_draw_data_t *draw_data = (_draw_data_t *) draw_data_;
assert (st->path_open);
Expand All @@ -55,12 +55,12 @@ _quadratic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
}

static void
_cubic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
_cubic_to (hb_draw_funcs_t *dfuncs HB_UNUSED, void *draw_data_,
hb_draw_state_t *st,
float control1_x, float control1_y,
float control2_x, float control2_y,
float control1_x HB_UNUSED, float control1_y HB_UNUSED,
float control2_x HB_UNUSED, float control2_y HB_UNUSED,
float to_x, float to_y,
void *user_data)
void *user_data HB_UNUSED)
{
_draw_data_t *draw_data = (_draw_data_t *) draw_data_;
assert (st->path_open);
Expand All @@ -70,9 +70,9 @@ _cubic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
}

static void
_close_path (hb_draw_funcs_t *dfuncs, void *draw_data_,
_close_path (hb_draw_funcs_t *dfuncs HB_UNUSED, void *draw_data_,
hb_draw_state_t *st,
void *user_data)
void *user_data HB_UNUSED)
{
_draw_data_t *draw_data = (_draw_data_t *) draw_data_;
assert (st->path_open && draw_data->path_len != 0);
Expand Down

0 comments on commit e157205

Please sign in to comment.