uevent: placate gcc
How sizeof() can be an aliasing problem? Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d80302db99
commit
c4367d7227
@ -32,7 +32,10 @@
|
|||||||
#define env ((char **)bb_common_bufsiz1)
|
#define env ((char **)bb_common_bufsiz1)
|
||||||
#define INIT_G() do { setup_common_bufsiz(); } while (0)
|
#define INIT_G() do { setup_common_bufsiz(); } while (0)
|
||||||
enum {
|
enum {
|
||||||
MAX_ENV = COMMON_BUFSIZE / sizeof(env[0]) - 1,
|
MAX_ENV = COMMON_BUFSIZE / sizeof(char*) - 1,
|
||||||
|
/* sizeof(env[0]) instead of sizeof(char*)
|
||||||
|
* makes gcc-6.3.0 emit "strict-aliasing" warning.
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef SO_RCVBUFFORCE
|
#ifndef SO_RCVBUFFORCE
|
||||||
|
Loading…
Reference in New Issue
Block a user