← Commit list

c4367d722

Denys Vlasenko
Denys Vlasenko
2017-08-16
SUCCESS Duration: 141s

Subject

uevent: placate gcc

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/uevent.c+4 -1
@@ -32,7 +32,10 @@
#define env ((char **)bb_common_bufsiz1)
#define INIT_G() do { setup_common_bufsiz(); } while (0)
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