diff options
author | dim <dim@FreeBSD.org> | 2012-02-21 21:20:52 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-02-21 21:20:52 +0000 |
commit | 7331b59a74a6147884a2a354cdd36fe302289bd0 (patch) | |
tree | 14a8497d3cccec0212d59b00996422a1413c645c /secure/lib/libcrypt/crypt-des.c | |
parent | 97a585876e728f80f43ab389448699d290cfa8c3 (diff) | |
download | FreeBSD-src-7331b59a74a6147884a2a354cdd36fe302289bd0.zip FreeBSD-src-7331b59a74a6147884a2a354cdd36fe302289bd0.tar.gz |
When building with clang, disable -Wformat-security for
sys/dev/hpt27xx/osm_bsd.c, since it gets the following warnings:
sys/dev/hpt27xx/osm_bsd.c:1180:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
S_IRUSR | S_IWUSR, driver_name);
^~~~~~~~~~~
@/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from:
#define driver_name hpt27xx_driver_name
^~~~~~~~~~~~~~~~~~~
Since 'hpt27xx_driver_name' is a constant string symbol (coming from the
proprietary hpt27xx_lib.o file), there is no security problem.
Because this driver is provided by the vendor, and applying changes
requires re-certification and other bureaucratic exercises, just disable
the warning for now.
MFC after: 1 week
Diffstat (limited to 'secure/lib/libcrypt/crypt-des.c')
0 files changed, 0 insertions, 0 deletions