mirror of git://gcc.gnu.org/git/gcc.git
cpplib.h (cpp_options): Use signed char.
* include/cpplib.h (cpp_options): Use signed char. * lex.c (_cpp_lex_direct): Don't warn in C++ mode. From-SVN: r214210
This commit is contained in:
parent
8714cbc5c7
commit
dd3ff077ef
|
|
@ -1,3 +1,8 @@
|
||||||
|
2014-08-20 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
|
* include/cpplib.h (cpp_options): Use signed char.
|
||||||
|
* lex.c (_cpp_lex_direct): Don't warn in C++ mode.
|
||||||
|
|
||||||
2014-08-19 Marek Polacek <polacek@redhat.com>
|
2014-08-19 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
* lex.c (_cpp_lex_direct): Fix a typo.
|
* lex.c (_cpp_lex_direct): Fix a typo.
|
||||||
|
|
|
||||||
|
|
@ -467,7 +467,7 @@ struct cpp_options
|
||||||
bool restore_pch_deps;
|
bool restore_pch_deps;
|
||||||
|
|
||||||
/* True if warn about differences between C90 and C99. */
|
/* True if warn about differences between C90 and C99. */
|
||||||
char cpp_warn_c90_c99_compat;
|
signed char cpp_warn_c90_c99_compat;
|
||||||
|
|
||||||
/* Dependency generation. */
|
/* Dependency generation. */
|
||||||
struct
|
struct
|
||||||
|
|
|
||||||
|
|
@ -2338,6 +2338,7 @@ _cpp_lex_direct (cpp_reader *pfile)
|
||||||
}
|
}
|
||||||
/* Or if specifically desired via -Wc90-c99-compat. */
|
/* Or if specifically desired via -Wc90-c99-compat. */
|
||||||
else if (CPP_OPTION (pfile, cpp_warn_c90_c99_compat) > 0
|
else if (CPP_OPTION (pfile, cpp_warn_c90_c99_compat) > 0
|
||||||
|
&& ! CPP_OPTION (pfile, cplusplus)
|
||||||
&& ! buffer->warned_cplusplus_comments)
|
&& ! buffer->warned_cplusplus_comments)
|
||||||
{
|
{
|
||||||
cpp_error (pfile, CPP_DL_WARNING,
|
cpp_error (pfile, CPP_DL_WARNING,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue