Options To Control Diagnostic Messages Formatting - Red Hat ENTERPRISE LINUX 3 - USING GCC Using Instructions

Using the gnu compiler collection (gcc)
Hide thumbs Also See for ENTERPRISE LINUX 3 - USING GCC:
Table of Contents

Advertisement

26
-Wno-protocol
If a class is declared to implement a protocol, a warning is issued for every method in the protocol
that is not implemented by the class. The default behavior is to issue a warning for every method
not explicitly implemented in the class, even if a method implementation is inherited from the
superclass. If you use the
are considered to be implemented, and no warning is issued for them.
-Wselector
Warn if multiple methods of different types for the same selector are found during compilation.
The check is performed on the list of methods in the final stage of compilation. Additionally, a
check is performed that for each selector appearing in a
responding method with that selector has been found during compilation. Because these checks
scan the method table only at the end of compilation, these warnings are not produced if the final
stage of compilation is not reached, for example because an error is found during compilation,
or because the
-fsyntax-only
-Wundeclared-selector
Warn if a
@selector(...)
tor is considered undeclared if no method with that name has been declared (explicitly, in an
or
@interface
fore the
@selector(...)
@selector(...)
stage of compilation), and so additionally enforces the coding style convention that methods and
selectors must be declared before being used.

4.7. Options to Control Diagnostic Messages Formatting

Traditionally, diagnostic messages have been formatted irrespective of the output device's aspect (for
example, its width, . . . ). The options described below can be used to control the diagnostic messages
formatting algorithm, for example, how many characters per line, how often source location informa-
tion should be reported. Right now, only the C++ front end can honor these options. However it is
expected, in the near future, that the remaining front ends would be able to digest them correctly.
-fmessage-length=
Try to format error messages so that they fit on lines of about
characters for
g++
line-wrapping will be done; each error message will appear on a single line.
-fdiagnostics-show-location=once
Only meaningful in line-wrapping mode. Instructs the diagnostic messages reporter to emit once
source location information; that is, in case the message is too long to fit on a single physical line
and has to be wrapped, the source location won't be emitted (as prefix) again, over and over, in
subsequent continuation lines. This is the default behavior.
-fdiagnostics-show-location=every-line
Only meaningful in line-wrapping mode. Instructs the diagnostic messages reporter to emit the
same source location information (as prefix) for physical lines that result from the process of
breaking a message which is too long to fit on a single line.
-Wno-protocol
option is being used.
expression referring to an undeclared selector is found. A selec-
declaration, or implicitly, in an
@protocol
expression. This option always performs its checks as soon as a
expression is found (while
n
and 0 for the rest of the front ends supported by GCC. If
Chapter 4. GCC Command Options
option, then methods inherited from the superclass
@selector(...)
@implementation
only performs its checks in the final
-Wselector
n
expression, a cor-
section) be-
characters. The default is 72
is zero, then no
n

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 3 - USING GCC and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Enterprise linux 3

Table of Contents