Actions
Bug #8460
closedemlxs: passing argument discards volatile qualifier
Start date:
2017-07-05
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
Build error from gcc 6:
../../common/io/fibre-channel/fca/emlxs/emlxs_mbox.c: In function 'emlxs_mb_config_hbq': ../../common/io/fibre-channel/fca/emlxs/emlxs_mbox.c:2539:7: error: passing argument 2 of 'bcopy' discards 'volatile' qualifier from pointer target type [-Werror=discarded-array-qualifiers] &mb->un.varCfgHbq.profiles.allprofiles, ^ In file included from ../..//common/sys/fibre-channel/fca/emlxs/emlxs_os.h:133:0, from ../..//common/sys/fibre-channel/fca/emlxs/emlxs.h:36, from ../../common/io/fibre-channel/fca/emlxs/emlxs_mbox.c:27: /code/illumos-gate/proto/root_i386/usr/include/sys/sunddi.h:476:13: note: expected 'void *' but argument is of type 'volatile uint32_t (*)[12] {aka volatile unsigned int (*)[12]}' extern void bcopy(const void *, void *, size_t); ^~~~~ cc1: all warnings being treated as errors
Updated by Electric Monk almost 6 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit 6b511167e8d56a74b24bdddf2937e6453ae54d1a
commit 6b511167e8d56a74b24bdddf2937e6453ae54d1a Author: Toomas Soome <tsoome@me.com> Date: 2017-07-13T17:00:54.000Z 8460 emlxs: passing argument discards volatile qualifier Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Reviewed by: Aurélien Larcher <aurelien.larcher@gmail.com> Approved by: Robert Mustacchi <rm@joyent.com>
Actions