diff options
author | Nigel Croxon <noxorc@mac.com> | 2017-01-08 06:52:33 -0500 |
---|---|---|
committer | Nigel Croxon <noxorc@mac.com> | 2017-01-08 06:52:33 -0500 |
commit | fa1b9779620670248c40c4fe92e797188a9736b8 (patch) | |
tree | 48bba3699bbf47da039880a8c122ee09222efe0d /inc | |
parent | bd38ba4b6bd944986d148b923d26aa3069087a57 (diff) | |
download | gnu-efi-fa1b9779620670248c40c4fe92e797188a9736b8.tar.gz |
GCC 4.8 (and others) const warnings
Calling the various Print functions picked up some warnings in my
project (using GCC 4.8 and 4.9 at the moment):
warning: passing argument 1 of Print discards const qualifier from
pointer target type [enabled by default]
Signed-off-by: Nigel Croxon <noxorc@mac.com>
Signed-off-by: Justinian <justinian@users.sf.net>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/efidebug.h | 10 | ||||
-rw-r--r-- | inc/efilib.h | 38 |
2 files changed, 24 insertions, 24 deletions
diff --git a/inc/efidebug.h b/inc/efidebug.h index 688f133..8e54dcd 100644 --- a/inc/efidebug.h +++ b/inc/efidebug.h @@ -94,15 +94,15 @@ extern UINTN EFIDebug; INTN DbgAssert ( - CHAR8 *file, - INTN lineno, - CHAR8 *string + CONST CHAR8 *file, + INTN lineno, + CONST CHAR8 *string ); INTN DbgPrint ( - INTN mask, - CHAR8 *format, + INTN mask, + CONST CHAR8 *format, ... ); diff --git a/inc/efilib.h b/inc/efilib.h index 607cddd..cd5d9ae 100644 --- a/inc/efilib.h +++ b/inc/efilib.h @@ -461,41 +461,41 @@ IInput ( UINTN Print ( - IN CHAR16 *fmt, + IN CONST CHAR16 *fmt, ... ); UINTN VPrint ( - IN CHAR16 *fmt, - va_list args + IN CONST CHAR16 *fmt, + va_list args ); UINTN SPrint ( - OUT CHAR16 *Str, - IN UINTN StrSize, - IN CHAR16 *fmt, + OUT CHAR16 *Str, + IN UINTN StrSize, + IN CONST CHAR16 *fmt, ... ); UINTN VSPrint ( - OUT CHAR16 *Str, - IN UINTN StrSize, - IN CHAR16 *fmt, - va_list args + OUT CHAR16 *Str, + IN UINTN StrSize, + IN CONST CHAR16 *fmt, + va_list args ); CHAR16 * VPoolPrint ( - IN CHAR16 *fmt, + IN CONST CHAR16 *fmt, va_list args ); CHAR16 * PoolPrint ( - IN CHAR16 *fmt, + IN CONST CHAR16 *fmt, ... ); @@ -508,22 +508,22 @@ typedef struct { CHAR16 * CatPrint ( IN OUT POOL_PRINT *Str, - IN CHAR16 *fmt, + IN CONST CHAR16 *fmt, ... ); UINTN PrintAt ( - IN UINTN Column, - IN UINTN Row, - IN CHAR16 *fmt, + IN UINTN Column, + IN UINTN Row, + IN CONST CHAR16 *fmt, ... ); UINTN IPrint ( IN SIMPLE_TEXT_OUTPUT_INTERFACE *Out, - IN CHAR16 *fmt, + IN CONST CHAR16 *fmt, ... ); @@ -532,13 +532,13 @@ IPrintAt ( IN SIMPLE_TEXT_OUTPUT_INTERFACE *Out, IN UINTN Column, IN UINTN Row, - IN CHAR16 *fmt, + IN CONST CHAR16 *fmt, ... ); UINTN APrint ( - IN CHAR8 *fmt, + IN CONST CHAR8 *fmt, ... ); |