diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-25 21:24:21 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-25 21:24:21 +0000 |
commit | bc4c7cf0ca44b306944758e0b68acbfba814c176 (patch) | |
tree | cff9a63bfecea7018da48a2aefd09f4fe8e000fc /gcc/c-common.h | |
parent | 7b7695eba9c378e229020a80b20cf80a5e147492 (diff) | |
download | gcc-bc4c7cf0ca44b306944758e0b68acbfba814c176.tar.gz |
* c-common.h (warn_cast_qual, warn_missing_format_attribute,
warn_pointer_arith, warn_missing_prototypes, warn_parentheses,
warn_missing_braces, warn_sign_compare, warn_long_long,
warn_redundant_decls, warn_float_equal, warn_char_subscripts,
warn_conversion, warn_format_y2k, warn_format_extra_args,
warn_format_zero_length, warn_format_nonliteral,
warn_format_security, mesg_implicit_function_declaration,
warn_bad_function_cast, warn_traditional,
warn_declaration_after_statement, warn_strict_prototypes,
warn_missing_declarations, warn_nested_externs,
warn_sequence_point, warn_init_self, warn_div_by_zero,
warn_implicit_int, warn_nonnull, warn_old_style_definition,
warn_selector, warn_undeclared_selector, warn_protocol,
warn_abi, warn_invalid_offsetof, warn_ctor_dtor_privacy,
warn_overloaded_virtual, warn_nonvdtor, warn_reorder,
warn_synth, warn_pmf2ptr, warn_ecpp, warn_sign_promo,
warn_old_style_cast, warn_nontemplate_friend,
warn_deprecated): Remove explicit declarations.
* c-common.c: Likewise, remove explicit definitions.
* c-opts.c: Likewise, remove explicit assignments.
* c.opts: Likewise, add implicit declare/define/assign.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 215 |
1 files changed, 0 insertions, 215 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index abb921e66fd..ae5fbb690bc 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -403,64 +403,11 @@ extern int flag_const_strings; extern int flag_signed_bitfields; extern int explicit_flag_signed_bitfields; -/* Nonzero means warn about pointer casts that can drop a type qualifier - from the pointer target type. */ - -extern int warn_cast_qual; - -/* Warn about functions which might be candidates for format attributes. */ - -extern int warn_missing_format_attribute; - -/* Nonzero means warn about sizeof(function) or addition/subtraction - of function pointers. */ - -extern int warn_pointer_arith; - -/* Nonzero means warn for any global function def - without separate previous prototype decl. */ - -extern int warn_missing_prototypes; - -/* Warn if adding () is suggested. */ - -extern int warn_parentheses; - -/* Warn if initializer is not completely bracketed. */ - -extern int warn_missing_braces; - -/* Warn about comparison of signed and unsigned values. - If -1, neither -Wsign-compare nor -Wno-sign-compare has been specified. */ - -extern int warn_sign_compare; - -/* Nonzero means warn about usage of long long when `-pedantic'. */ - -extern int warn_long_long; - /* Nonzero means warn about deprecated conversion from string constant to `char *'. */ extern int warn_write_strings; -/* Nonzero means warn about multiple (redundant) decls for the same single - variable or function. */ - -extern int warn_redundant_decls; - -/* Warn about testing equality of floating point numbers. */ - -extern int warn_float_equal; - -/* Warn about a subscript that has type char. */ - -extern int warn_char_subscripts; - -/* Warn if a type conversion is done that might have confusing results. */ - -extern int warn_conversion; - /* Warn about #pragma directives that are not recognized. */ extern int warn_unknown_pragmas; /* Tri state variable. */ @@ -470,35 +417,10 @@ extern int warn_unknown_pragmas; /* Tri state variable. */ extern int warn_format; -/* Warn about Y2K problems with strftime formats. */ - -extern int warn_format_y2k; - -/* Warn about excess arguments to formats. */ - -extern int warn_format_extra_args; - -/* Warn about zero-length formats. */ - -extern int warn_format_zero_length; - -/* Warn about non-literal format arguments. */ - -extern int warn_format_nonliteral; - -/* Warn about possible security problems with calls to format functions. */ - -extern int warn_format_security; - /* C/ObjC language option variables. */ -/* Nonzero means message about use of implicit function declarations; - 1 means warning; 2 means error. */ - -extern int mesg_implicit_function_declaration; - /* Nonzero means allow type mismatches in conditional expressions; just make their values `void'. */ @@ -516,68 +438,10 @@ extern int flag_isoc99; extern int flag_hosted; -/* Nonzero means warn when casting a function call to a type that does - not match the return type (e.g. (float)sqrt() or (anything*)malloc() - when there is no previous declaration of sqrt or malloc. */ - -extern int warn_bad_function_cast; - -/* Warn about traditional constructs whose meanings changed in ANSI C. */ - -extern int warn_traditional; - -/* Nonzero means warn for a declaration found after a statement. */ - -extern int warn_declaration_after_statement; - -/* Nonzero means warn for non-prototype function decls - or non-prototyped defs without previous prototype. */ - -extern int warn_strict_prototypes; - -/* Nonzero means warn for any global function def - without separate previous decl. */ - -extern int warn_missing_declarations; - -/* Nonzero means warn about extern declarations of objects not at - file-scope level and about *all* declarations of functions (whether - extern or static) not at file-scope level. Note that we exclude - implicit function declarations. To get warnings about those, use - -Wimplicit. */ - -extern int warn_nested_externs; - /* Warn if main is suspicious. */ extern int warn_main; -/* Nonzero means warn about possible violations of sequence point rules. */ - -extern int warn_sequence_point; - -/* Nonzero means warn about uninitialized variable when it is initialized with itself. - For example: int i = i;, GCC will not warn about this when warn_init_self is nonzero. */ - -extern int warn_init_self; - - -/* Nonzero means to warn about compile-time division by zero. */ -extern int warn_div_by_zero; - -/* Nonzero means warn about use of implicit int. */ - -extern int warn_implicit_int; - -/* Warn about NULL being passed to argument slots marked as requiring - non-NULL. */ - -extern int warn_nonnull; - -/* Warn about old-style parameter declaration. */ - -extern int warn_old_style_definition; - /* ObjC language option variables. */ @@ -601,25 +465,6 @@ extern int print_struct_values; extern const char *constant_string_class_name; -/* Warn if multiple methods are seen for the same selector, but with - different argument types. Performs the check on the whole selector - table at the end of compilation. */ - -extern int warn_selector; - -/* Warn if a @selector() is found, and no method with that selector - has been previously declared. The check is done on each - @selector() as soon as it is found - so it warns about forward - declarations. */ - -extern int warn_undeclared_selector; - -/* Warn if methods required by a protocol are not implemented in the - class adopting it. When turned off, methods inherited to that - class are also considered implemented. */ - -extern int warn_protocol; - /* C++ language option variables. */ @@ -722,70 +567,10 @@ extern int flag_permissive; extern int flag_enforce_eh_specs; -/* Nonzero means warn about things that will change when compiling - with an ABI-compliant compiler. */ - -extern int warn_abi; - -/* Nonzero means warn about invalid uses of offsetof. */ - -extern int warn_invalid_offsetof; - /* Nonzero means warn about implicit declarations. */ extern int warn_implicit; -/* Nonzero means warn when all ctors or dtors are private, and the class - has no friends. */ - -extern int warn_ctor_dtor_privacy; - -/* Nonzero means warn in function declared in derived class has the - same name as a virtual in the base class, but fails to match the - type signature of any virtual function in the base class. */ - -extern int warn_overloaded_virtual; - -/* Nonzero means warn when declaring a class that has a non virtual - destructor, when it really ought to have a virtual one. */ - -extern int warn_nonvdtor; - -/* Nonzero means warn when the compiler will reorder code. */ - -extern int warn_reorder; - -/* Nonzero means warn when synthesis behavior differs from Cfront's. */ - -extern int warn_synth; - -/* Nonzero means warn when we convert a pointer to member function - into a pointer to (void or function). */ - -extern int warn_pmf2ptr; - -/* Nonzero means warn about violation of some Effective C++ style rules. */ - -extern int warn_ecpp; - -/* Nonzero means warn where overload resolution chooses a promotion from - unsigned to signed over a conversion to an unsigned of the same size. */ - -extern int warn_sign_promo; - -/* Nonzero means warn when an old-style cast is used. */ - -extern int warn_old_style_cast; - -/* Nonzero means warn when non-templatized friend functions are - declared within a template */ - -extern int warn_nontemplate_friend; - -/* Nonzero means complain about deprecated features. */ - -extern int warn_deprecated; - /* Maximum template instantiation depth. This limit is rather arbitrary, but it exists to limit the time it takes to notice infinite template instantiations. */ |