Project

General

Profile

Actions

Bug #12125

closed

smbsrv: passing argument 1 to restrict-qualified parameter aliases with argument 4

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cifs - CIFS server and client
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

smbd_spool.c: In function 'smbd_load_printers':
smbd_spool.c:427:22: error: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
  rc = pthread_create(&tid, &attr, smbd_share_printers, &tid);
                      ^~~~                              ~~~~
cc1: all warnings being treated as errors

Testing done: build/install/boot

last argument is not used by smbd_share_printers, so just pass NULL there.

Actions

Also available in: Atom PDF