Wformat-security

Determines whether the compiler issues a warning when the use of format functions may cause security problems.

IDE Equivalent

None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-Wformat-security

-Wno-format-security

Windows:

None

Arguments

None

Default

-Wno-format-security

No warning is issued when the use of format functions may cause security problems.

Description

This option determines whether the compiler issues a warning when the use of format functions may cause security problems.

When -Wformat-security is specified, it warns about uses of format functions where the format string is not a string literal and there are no format arguments.

Alternate Options

None


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.