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:
parent
3104fae244
commit
e918d9035f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue