Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[build] Silence warnings about unused parameters
The functions take extra parameters to follow convention - which then causes
compiler to issue warnings during build.

Flag the parameters as "unused on purpose".

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 5, 2018
1 parent eb0499d commit 781067b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usb_moded-modesetting.c
Expand Up @@ -553,6 +553,8 @@ static bool modesetting_enter_mass_storage_mode(struct mode_list_elem *data)

static int modesetting_leave_mass_storage_mode(struct mode_list_elem *data)
{
(void)data;

bool ack = false;
size_t count = 0;
storage_info_t *info = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/usb_moded-worker.c
Expand Up @@ -586,6 +586,8 @@ worker_add_iowatch(int fd, bool close_on_unref,

static void *worker_thread_cb(void *aptr)
{
(void)aptr;

/* Async cancellation, but disabled */
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, 0);
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
Expand Down

0 comments on commit 781067b

Please sign in to comment.