Skip to content

Commit

Permalink
PR ada/82813
Browse files Browse the repository at this point in the history
	* gcc-interface/misc.c (gnat_post_options): Disable string overflow
	warnings.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258466 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ebotcazou committed Mar 12, 2018
1 parent 78f59e3 commit 7d966c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/ada/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2018-03-12 Eric Botcazou <ebotcazou@adacore.com>

PR ada/82813
* gcc-interface/misc.c (gnat_post_options): Disable string overflow
warnings.

2018-03-10 Eric Botcazou <ebotcazou@adacore.com>

* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
Expand Down
3 changes: 3 additions & 0 deletions gcc/ada/gcc-interface/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED)
/* No return type warnings for Ada. */
warn_return_type = 0;

/* No string overflow warnings for Ada. */
warn_stringop_overflow = 0;

/* No caret by default for Ada. */
if (!global_options_set.x_flag_diagnostics_show_caret)
global_dc->show_caret = false;
Expand Down

0 comments on commit 7d966c3

Please sign in to comment.