diff options
Diffstat (limited to 'gcc/ada/sinput-c.adb')
-rw-r--r-- | gcc/ada/sinput-c.adb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ada/sinput-c.adb b/gcc/ada/sinput-c.adb index b443b4bf885..370429a0109 100644 --- a/gcc/ada/sinput-c.adb +++ b/gcc/ada/sinput-c.adb @@ -2,11 +2,11 @@ -- -- -- GNAT COMPILER COMPONENTS -- -- -- --- S I N P U T . P -- +-- S I N P U T . C -- -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2003 Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2004 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -129,9 +129,15 @@ package body Sinput.C is declare pragma Suppress (All_Checks); + pragma Warnings (Off); + -- The following unchecked conversion is aliased safe, since it + -- is not used to create improperly aliased pointer values. + function To_Source_Buffer_Ptr is new Ada.Unchecked_Conversion (Address, Source_Buffer_Ptr); + pragma Warnings (On); + begin Src := To_Source_Buffer_Ptr (Actual_Ptr (0)'Address); end; |