9
0
Fork 0

compiler: Make ubi/ubifs compile with its unused variables

Not sure why these were missing but they are very much needed to
compile the ubi code.

Fixes:
| drivers/mtd/ubi/attach.c:808:2: warning: parameter names (without types) in function declaration
|   long long uninitialized_var(ec);
|   ^~~~
| drivers/mtd/ubi/attach.c:847:3: error: 'ec' undeclared (first use in this function)
|    ec = UBI_UNKNOWN;
|    ^~
This commit is contained in:
Holger Hans Peter Freyther 2017-03-30 00:00:35 +02:00
parent 3104fae244
commit e918d9035f
2 changed files with 12 additions and 0 deletions

View File

@ -63,3 +63,9 @@
#define __HAVE_BUILTIN_BSWAP64__
#define __HAVE_BUILTIN_BSWAP16__
#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */
/*
* A trick to suppress uninitialized variable warning without generating any
* code
*/
#define uninitialized_var(x) x = x

View File

@ -63,3 +63,9 @@
#define __HAVE_BUILTIN_BSWAP64__
#define __HAVE_BUILTIN_BSWAP16__
#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */
/*
* A trick to suppress uninitialized variable warning without generating any
* code
*/
#define uninitialized_var(x) x = x