[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] Warnungen sind mit -Werror schlecht
From: Max Reitz <max@xxxxxxxxxx>
* wchar_t sollte als __WCHAR_TYPE__ definiert werden, damit es
hier keine inkompatiblen Zeigerzuweisungen (in readline.c) gibt.
* Neuer Wert im jprintf-positional_parameters-Struktur-enum, damit
dieser auch verwendet werden kann
Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
src/include/arch/i386/stddef.h | 2 +-
src/modules/lib/stdlibc/jprintf.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/include/arch/i386/stddef.h b/src/include/arch/i386/stddef.h
index 13c907d..8c0720d 100644
--- a/src/include/arch/i386/stddef.h
+++ b/src/include/arch/i386/stddef.h
@@ -40,7 +40,7 @@
typedef __SIZE_TYPE__ size_t;
typedef int ptrdiff_t;
#ifndef __cplusplus
-typedef int32_t wchar_t;
+typedef __WCHAR_TYPE__ wchar_t;
#endif
#endif
diff --git a/src/modules/lib/stdlibc/jprintf.c b/src/modules/lib/stdlibc/jprintf.c
index c7fbbce..cefba06 100644
--- a/src/modules/lib/stdlibc/jprintf.c
+++ b/src/modules/lib/stdlibc/jprintf.c
@@ -246,6 +246,7 @@ struct positional_parameter
unsigned_type_flag = 0x100,
uint_type = unsigned_type_flag | int_type,
//ulong_type = unsigned_type_flag | long_type,
+ ulong_long_type = unsigned_type_flag | long_long_type,
ptr_type = 0x10,
double_type = 0x20,
long_double_type = 0x30,
--
1.7.1