Build of dmidecode with android toolchain

The build took 00h 00m 51s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
5,633 ansic
78 makefile
5,711 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: dmidecode 3.0-1 (Tue Apr 4 20:39:04 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef -D_FILE_OFFSET_BITS=64 -O2 -c dmidecode.c -o dmidecode.o
# gcc -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef -D_FILE_OFFSET_BITS=64 -O2 -c dmiopt.c -o dmiopt.o
# gcc -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef -D_FILE_OFFSET_BITS=64 -O2 -c dmioem.c -o dmioem.o
# gcc -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef -D_FILE_OFFSET_BITS=64 -O2 -c util.c -o util.o
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# dmioem.c:22:19: error: no include path in which to search for stdio.h
# #include
# ^
# dmidecode.c:55:19: error: no include path in which to search for stdio.h
# #include
# ^
# dmioem.c:23:20: error: no include path in which to search for string.h
# #include
# ^
# dmidecode.c:56:20: error: no include path in which to search for string.h
# #include
# ^
# dmidecode.c:57:21: error: no include path in which to search for strings.h
# #include
# ^
# dmidecode.c:58:20: error: no include path in which to search for stdlib.h
# #include
# ^
# dmidecode.c:59:20: error: no include path in which to search for unistd.h
# #include
# ^
# In file included from dmidecode.c:64:0:
# util.h:21:23: error: no include path in which to search for sys/types.h
# #include
# ^
# util.h:27:29: error: unknown type name 'size_t'
# int checksum(const u8 *buf, size_t len);
# ^
# util.h:28:17: error: unknown type name 'size_t'
# void *read_file(size_t len, const char *filename);
# ^
# util.h:29:17: error: unknown type name 'off_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem);
# ^
# util.h:29:29: error: unknown type name 'size_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem);
# ^
# dmioem.c: In function 'dmi_set_vendor':
# util.h:30:16: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
# ^
# util.h:30:29: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
# ^
# dmioem.c:55:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# len = strlen(s);
# ^
# dmioem.c:55:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(s);
# ^
# dmioem.c:59:2: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (strncmp(s, "HP", len) == 0 || strncmp(s, "Hewlett-Packard", len) == 0)
# ^
# dmioem.c: In function 'dmi_print_hp_net_iface_rec':
# dmioem.c:84:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("\tNIC %d: Disabled\n", id);
# ^
# dmidecode.c: In function 'dmi_string':
# dmioem.c:84:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# dmidecode.c:99:2: error: unknown type name 'size_t'
# size_t i, len;
# ^
# dmidecode.c:107:3: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# bp += strlen(bp);
# ^
# dmidecode.c:107:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# bp += strlen(bp);
# ^
# dmioem.c: In function 'dmi_decode_hp':
# dmioem.c:108:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("HP ProLiant System/Rack Locator\n");
# ^
# dmidecode.c:118:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(bp);
# ^
# In file included from dmioem.c:25:0:
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:192:34: note: in expansion of macro 'DWORD'
# printf("\tSignature: 0x%08x", DWORD(data + 0x04));
# ^
# dmidecode.c: In function 'dmi_dump':
# dmidecode.c:194:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("%sHeader and Data:\n", prefix);
# ^
# dmidecode.c:194:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:197:8: note: in expansion of macro 'DWORD'
# if (DWORD(data + 0x04) == 0x55524324)
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmioem.c:199:17: note: in expansion of macro 'QWORD'
# u64 paddr = QWORD(data + 0x08);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:200:16: note: in expansion of macro 'DWORD'
# paddr.l += DWORD(data + 0x14);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:201:19: note: in expansion of macro 'DWORD'
# if (paddr.l < DWORD(data + 0x14))
# ^
# dmidecode.c:212:16: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int j, l = strlen(s) + 1;
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:205:34: note: in expansion of macro 'DWORD'
# printf("\tLength: 0x%08x\n", DWORD(data + 0x10));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:217:41: note: in expansion of macro 'DWORD'
# printf("\tPower Features: 0x%08x\n", DWORD(data + 0x04));
# ^
# dmidecode.c:226:7: warning: implicit declaration of function 'fputc' [-Wimplicit-function-declaration]
# fputc('.', stdout);
# ^
# dmidecode.c:226:18: error: 'stdout' undeclared (first use in this function)
# fputc('.', stdout);
# ^
# dmidecode.c:226:18: note: each undeclared identifier is reported only once for each function it appears in
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:219:41: note: in expansion of macro 'DWORD'
# printf("\tOmega Features: 0x%08x\n", DWORD(data + 0x08));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmioem.c:221:11: note: in expansion of macro 'DWORD'
# feat = DWORD(data + 0x10);
# ^
# dmioem.c: In function 'dmi_decode_acer':
# dmidecode.c: In function 'dmi_print_memory_size':
# dmioem.c:254:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Acer Hotkey Function\n");
# ^
# dmidecode.c:280:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %lu %s", capacity, unit[i + shift]);
# ^
# In file included from dmioem.c:25:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmioem.c:256:10: note: in expansion of macro 'WORD'
# cap = WORD(data + 0x04);
# ^
# dmidecode.c: In function 'dmi_bios_runtime_size':
# dmidecode.c:290:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %u bytes", code);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmioem.c:262:66: note: in expansion of macro 'WORD'
# printf("\tFunction bitmap for Application Button: 0x%04hx\n", WORD(data + 0x06));
# ^
# dmidecode.c: In function 'dmi_bios_characteristics':
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmioem.c:263:60: note: in expansion of macro 'WORD'
# printf("\tFunction bitmap for Media Button: 0x%04hx\n", WORD(data + 0x08));
# ^
# dmidecode.c:336:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s%s\n",
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmioem.c:264:62: note: in expansion of macro 'WORD'
# printf("\tFunction bitmap for Display Button: 0x%04hx\n", WORD(data + 0x0A));
# ^
# dmidecode.c:343:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s%s\n",
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmioem.c:265:61: note: in expansion of macro 'WORD'
# printf("\tFunction bitmap for Others Button: 0x%04hx\n", WORD(data + 0x0C));
# ^
# dmidecode.c: In function 'dmi_bios_characteristics_x1':
# dmidecode.c:364:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s%s\n",
# ^
# dmidecode.c: In function 'dmi_bios_characteristics_x2':
# dmidecode.c:382:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s%s\n",
# ^
# dmidecode.c: In function 'dmi_system_uuid':
# dmidecode.c:403:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Not Present");
# ^
# dmidecode.c:408:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Not Settable");
# ^
# dmidecode.c:421:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",
# ^
# dmidecode.c: In function 'dmi_base_board_features':
# dmidecode.c:466:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None\n");
# ^
# dmidecode.c: In function 'dmi_base_board_handles':
# dmidecode.c:507:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sContained Object Handles: %u\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:511:12: note: in expansion of macro 'WORD'
# prefix, WORD(p + sizeof(u16) * i));
# ^
# dmidecode.c: In function 'dmi_chassis_height':
# dmidecode.c:609:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unspecified");
# ^
# dmidecode.c: In function 'dmi_chassis_power_cords':
# dmidecode.c:617:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unspecified");
# ^
# dmidecode.c: In function 'dmi_chassis_elements':
# dmidecode.c:626:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sContained Elements: %u\n",
# ^
# make: *** [Makefile:88: dmioem.o] Error 1
# make: *** Waiting for unfinished jobs....
# cc1: error: no include path in which to search for stdc-predef.h
# util.c:28:23: error: no include path in which to search for sys/types.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# util.c:29:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# util.c:34:22: error: no include path in which to search for sys/mman.h
# #include
# ^
# util.c:40:19: error: no include path in which to search for stdio.h
# #include
# ^
# util.c:41:20: error: no include path in which to search for stdlib.h
# #include
# ^
# util.c:42:20: error: no include path in which to search for unistd.h
# #include
# ^
# util.c:43:20: error: no include path in which to search for string.h
# #include
# ^
# dmiopt.c:22:19: error: no include path in which to search for stdio.h
# #include
# ^
# util.c:44:19: error: no include path in which to search for fcntl.h
# #include
# ^
# dmiopt.c:23:21: error: no include path in which to search for strings.h
# #include
# ^
# util.c:45:19: error: no include path in which to search for errno.h
# #include
# ^
# dmiopt.c:24:20: error: no include path in which to search for stdlib.h
# #include
# ^
# dmiopt.c:25:20: error: no include path in which to search for getopt.h
# #include
# ^
# In file included from util.c:48:0:
# util.h:21:23: error: no include path in which to search for sys/types.h
# #include
# ^
# util.h:27:29: error: unknown type name 'size_t'
# int checksum(const u8 *buf, size_t len);
# ^
# In file included from dmiopt.c:29:0:
# util.h:21:23: error: no include path in which to search for sys/types.h
# #include
# ^
# util.h:28:17: error: unknown type name 'size_t'
# void *read_file(size_t len, const char *filename);
# ^
# util.h:27:29: error: unknown type name 'size_t'
# int checksum(const u8 *buf, size_t len);
# ^
# util.h:29:17: error: unknown type name 'off_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem);
# ^
# util.h:29:29: error: unknown type name 'size_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem);
# ^
# util.h:28:17: error: unknown type name 'size_t'
# void *read_file(size_t len, const char *filename);
# ^
# util.h:30:16: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
# ^
# util.h:29:17: error: unknown type name 'off_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem);
# ^
# util.h:30:29: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
# ^
# util.h:29:29: error: unknown type name 'size_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem);
# ^
# dmidecode.c: In function 'dmi_processor_family':
# util.h:30:16: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
# ^
# util.h:30:29: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
# ^
# util.c:50:36: error: unknown type name 'size_t'
# static int myread(int fd, u8 *buf, size_t count, const char *prefix)
# ^
# util.c:81:29: error: unknown type name 'size_t'
# int checksum(const u8 *buf, size_t len)
# ^
# dmidecode.c:900:3: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
# if (strstr(manufacturer, "Intel") != NULL
# ^
# util.c:100:17: error: unknown type name 'size_t'
# void *read_file(size_t max_len, const char *filename)
# ^
# dmidecode.c:900:7: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
# if (strstr(manufacturer, "Intel") != NULL
# ^
# util.c:150:17: error: unknown type name 'off_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem)
# ^
# util.c:150:29: error: unknown type name 'size_t'
# void *mem_chunk(off_t base, size_t len, const char *devmem)
# ^
# dmidecode.c:900:40: error: 'NULL' undeclared (first use in this function)
# if (strstr(manufacturer, "Intel") != NULL
# ^
# util.c:221:16: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add)
# ^
# util.c:221:29: error: unknown type name 'size_t'
# int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add)
# ^
# dmidecode.c:901:4: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]
# || strncasecmp(manufacturer, "Intel", 5) == 0)
# ^
# dmiopt.c: In function 'print_opt_type_list':
# dmiopt.c:74:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "Valid type keywords are:\n");
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:906:3: note: in expansion of macro 'WORD'
# WORD(data + 0x28) : data[0x06];
# ^
# dmiopt.c:74:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# dmiopt.c:74:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Valid type keywords are:\n");
# ^
# dmiopt.c:74:10: note: each undeclared identifier is reported only once for each function it appears in
# dmidecode.c:916:8: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
# if (strstr(manufacturer, "Intel") != NULL
# ^
# dmiopt.c: In function 'parse_opt_type':
# dmiopt.c:86:11: error: 'NULL' undeclared (first use in this function)
# if (p == NULL)
# ^
# dmiopt.c:88:3: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# p = (u8 *)calloc(256, sizeof(u8));
# ^
# dmiopt.c:88:13: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# p = (u8 *)calloc(256, sizeof(u8));
# ^
# dmiopt.c:91:4: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror("calloc");
# ^
# dmidecode.c: In function 'dmi_processor_id':
# dmidecode.c:960:3: error: 'NULL' undeclared (first use in this function)
# NULL, /* 10 */
# ^
# dmiopt.c:99:3: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
# if (!strcasecmp(arg, opt_type_keyword[i].keyword))
# ^
# dmiopt.c:114:3: warning: implicit declaration of function 'strtoul' [-Wimplicit-function-declaration]
# val = strtoul(arg, &next, 0);
# ^
# dmidecode.c:995:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sID: %02X %02X %02X %02X %02X %02X %02X %02X\n",
# ^
# dmiopt.c:117:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Invalid type keyword: %s\n", arg);
# ^
# dmiopt.c:117:12: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Invalid type keyword: %s\n", arg);
# ^
# dmiopt.c:123:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Invalid type number: %lu\n", val);
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:1000:12: note: in expansion of macro 'WORD'
# u16 dx = WORD(p);
# ^
# dmiopt.c:137:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(p);
# ^
# dmiopt.c:137:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:1011:12: note: in expansion of macro 'WORD'
# u16 dx = WORD(p);
# ^
# dmiopt.c: In function 'print_opt_string_list':
# dmidecode.c:1053:3: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (strncmp(version, "Pentium III MMX", 15) == 0
# ^
# dmiopt.c:178:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Valid string keywords are:\n");
# ^
# dmiopt.c:178:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Valid string keywords are:\n");
# ^
# dmidecode.c:1056:4: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# || strcmp(version, "Genuine Intel(R) CPU U1400") == 0)
# ^
# dmiopt.c: In function 'parse_opt_string':
# dmiopt.c:191:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Only one string can be specified\n");
# ^
# dmiopt.c:191:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Only one string can be specified\n");
# ^
# dmiopt.c:204:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Invalid string keyword: %s\n", arg);
# ^
# In file included from dmidecode.c:63:0:
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:1068:8: note: in expansion of macro 'DWORD'
# eax = DWORD(p);
# ^
# dmiopt.c: In function 'parse_command_line':
# make: *** [Makefile:103: util.o] Error 1
# dmiopt.c:219:16: error: array type has incomplete element type
# struct option longopts[] = {
# ^
# dmiopt.c:220:16: error: 'required_argument' undeclared (first use in this function)
# { "dev-mem", required_argument, NULL, 'd' },
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:1069:8: note: in expansion of macro 'DWORD'
# edx = DWORD(p + 4);
# ^
# dmiopt.c:220:35: error: 'NULL' undeclared (first use in this function)
# { "dev-mem", required_argument, NULL, 'd' },
# ^
# dmiopt.c:221:13: error: 'no_argument' undeclared (first use in this function)
# { "help", no_argument, NULL, 'h' },
# ^
# dmiopt.c:233:2: warning: implicit declaration of function 'getopt_long' [-Wimplicit-function-declaration]
# while ((option = getopt_long(argc, argv, optstring, longopts, NULL)) != -1)
# ^
# dmiopt.c:238:20: error: 'optarg' undeclared (first use in this function)
# opt.dumpfile = optarg;
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:1088:8: note: in expansion of macro 'DWORD'
# edx = DWORD(p + 4);
# ^
# dmiopt.c:273:13: error: 'optopt' undeclared (first use in this function)
# switch (optopt)
# ^
# dmiopt.c:276:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "String keyword expected\n");
# ^
# dmidecode.c: In function 'dmi_processor_voltage':
# dmiopt.c:276:15: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "String keyword expected\n");
# ^
# dmidecode.c:1114:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %.1f V", (float)(code & 0x7f) / 10);
# ^
# dmiopt.c:291:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Options --string, --type and --dump-bin are mutually exclusive\n");
# ^
# In file included from dmidecode.c:63:0:
# dmidecode.c: In function 'dmi_processor_frequency':
# dmiopt.c:297:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Options --from-dump and --dump-bin are mutually exclusive\n");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:1127:13: note: in expansion of macro 'WORD'
# u16 code = WORD(p);
# ^
# dmiopt.c:219:16: warning: unused variable 'longopts' [-Wunused-variable]
# struct option longopts[] = {
# ^
# dmiopt.c: In function 'print_help':
# dmidecode.c:1130:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%u MHz", code);
# ^
# dmiopt.c:319:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("%s", help);
# ^
# dmiopt.c:319:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# dmidecode.c: In function 'dmi_processor_cache':
# dmidecode.c:1216:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Not Provided");
# ^
# dmidecode.c:1221:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" 0x%04X", code);
# ^
# dmidecode.c: In function 'dmi_processor_characteristics':
# dmidecode.c:1237:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None\n");
# ^
# dmidecode.c: In function 'dmi_memory_controller_ec_capabilities':
# dmidecode.c:1285:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None\n");
# ^
# dmidecode.c: In function 'dmi_memory_controller_speeds':
# dmidecode.c:1327:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None\n");
# ^
# dmidecode.c: In function 'dmi_memory_controller_slots':
# dmidecode.c:1343:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sAssociated Memory Slots: %u\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:1347:12: note: in expansion of macro 'WORD'
# prefix, WORD(p + sizeof(u16) * i));
# ^
# make: *** [Makefile:85: dmiopt.o] Error 1
# dmidecode.c: In function 'dmi_memory_module_types':
# dmidecode.c:1372:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None");
# ^
# dmidecode.c: In function 'dmi_memory_module_connections':
# dmidecode.c:1386:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None");
# ^
# dmidecode.c: In function 'dmi_memory_module_speed':
# dmidecode.c:1399:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_memory_module_size':
# dmidecode.c:1410:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Not Determinable");
# ^
# dmidecode.c:1423:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" (Double-bank Connection)");
# ^
# dmidecode.c: In function 'dmi_memory_module_error':
# dmidecode.c:1431:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" See Event Log\n");
# ^
# dmidecode.c: In function 'dmi_cache_size':
# dmidecode.c:1474:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %u kB", (code & 0x7FFF) << 6);
# ^
# dmidecode.c: In function 'dmi_cache_types':
# dmidecode.c:1493:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None");
# ^
# dmidecode.c: In function 'dmi_slot_id':
# dmidecode.c:1815:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sID: %u\n", prefix, code1);
# ^
# dmidecode.c: In function 'dmi_slot_characteristics':
# dmidecode.c:1875:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown\n");
# ^
# dmidecode.c: In function 'dmi_slot_segment_bus_func':
# dmidecode.c:1896:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sBus Address: %04x:%02x:%02x.%x\n",
# ^
# dmidecode.c: In function 'dmi_on_board_devices':
# dmidecode.c:1934:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sOn Board Device Information\n",
# ^
# dmidecode.c: In function 'dmi_oem_strings':
# dmidecode.c:1959:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sString %d: %s\n",
# ^
# dmidecode.c: In function 'dmi_system_configuration_options':
# dmidecode.c:1974:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sOption %d: %s\n",
# ^
# dmidecode.c: In function 'dmi_bios_languages':
# dmidecode.c:1989:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s%s\n",
# ^
# dmidecode.c: In function 'dmi_group_associations_items':
# dmidecode.c:2011:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s0x%04X (%s)\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:2012:12: note: in expansion of macro 'WORD'
# prefix, WORD(p + 3 * i + 1),
# ^
# dmidecode.c: In function 'dmi_event_log_status':
# dmidecode.c:2049:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %s, %s",
# ^
# dmidecode.c: In function 'dmi_event_log_address':
# dmidecode.c:2061:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Index 0x%04X, Data 0x%04X", WORD(p), WORD(p + 2));
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:2061:41: note: in expansion of macro 'WORD'
# printf(" Index 0x%04X, Data 0x%04X", WORD(p), WORD(p + 2));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:2061:50: note: in expansion of macro 'WORD'
# printf(" Index 0x%04X, Data 0x%04X", WORD(p), WORD(p + 2));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:2064:22: note: in expansion of macro 'DWORD'
# printf(" 0x%08X", DWORD(p));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:2067:22: note: in expansion of macro 'WORD'
# printf(" 0x%04X", WORD(p));
# ^
# dmidecode.c: In function 'dmi_event_log_descriptor_type':
# dmidecode.c:2092:3: error: 'NULL' undeclared (first use in this function)
# NULL, /* 0x00 */
# ^
# dmidecode.c:2118:33: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (code <= 0x17 && type[code] != NULL)
# ^
# dmidecode.c: In function 'dmi_event_log_descriptors':
# dmidecode.c:2156:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sDescriptor %u: %s\n",
# ^
# dmidecode.c: In function 'dmi_memory_array_error_handle':
# dmidecode.c:2236:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Not Provided");
# ^
# dmidecode.c: In function 'dmi_memory_device_width':
# dmidecode.c:2253:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_memory_device_size':
# dmidecode.c:2261:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" No Module Installed");
# ^
# dmidecode.c: In function 'dmi_memory_device_extended_size':
# dmidecode.c:2279:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %lu MB", (unsigned long)code);
# ^
# dmidecode.c: In function 'dmi_memory_voltage_value':
# dmidecode.c:2289:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_memory_device_set':
# dmidecode.c:2323:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None");
# ^
# dmidecode.c: In function 'dmi_memory_device_type_detail':
# dmidecode.c:2393:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" None");
# ^
# dmidecode.c: In function 'dmi_memory_device_speed':
# dmidecode.c:2407:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_memory_error_syndrome':
# dmidecode.c:2475:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_32bit_memory_error_address':
# dmidecode.c:2483:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_mapped_address_size':
# dmidecode.c:2495:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Invalid");
# ^
# dmidecode.c: In function 'dmi_mapped_address_extended_size':
# dmidecode.c:2509:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Invalid");
# ^
# dmidecode.c: In function 'dmi_mapped_address_row_position':
# dmidecode.c:2521:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %s", out_of_spec);
# ^
# dmidecode.c: In function 'dmi_mapped_address_interleave_position':
# dmidecode.c:2532:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sInterleave Position:", prefix);
# ^
# dmidecode.c: In function 'dmi_mapped_address_interleaved_data_depth':
# dmidecode.c:2545:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sInterleaved Data Depth:", prefix);
# ^
# dmidecode.c: In function 'dmi_battery_capacity':
# dmidecode.c:2630:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_battery_voltage':
# dmidecode.c:2638:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_battery_maximum_error':
# dmidecode.c:2646:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_system_reset_count':
# dmidecode.c:2671:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_system_reset_timer':
# dmidecode.c:2679:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_power_controls_power_on':
# dmidecode.c:2708:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" %02X", p[0]);
# ^
# dmidecode.c: In function 'dmi_voltage_probe_value':
# dmidecode.c:2775:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_voltage_probe_resolution':
# dmidecode.c:2783:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_probe_accuracy':
# dmidecode.c:2791:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_cooling_device_speed':
# dmidecode.c:2829:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown Or Non-rotating");
# ^
# dmidecode.c: In function 'dmi_temperature_probe_value':
# dmidecode.c:2867:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_temperature_probe_resolution':
# dmidecode.c:2875:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_current_probe_value':
# dmidecode.c:2887:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_current_probe_resolution':
# dmidecode.c:2895:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_64bit_memory_error_address':
# dmidecode.c:2934:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_fixup_type_34':
# dmidecode.c:2957:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Invalid entry length (%u). Fixed up to %u.\n", 0x10, 0x0B);
# ^
# dmidecode.c: In function 'dmi_memory_channel_devices':
# dmidecode.c:3027:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sDevice %u Load: %u\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3031:16: note: in expansion of macro 'WORD'
# prefix, i, WORD(p + 3 * i + 1));
# ^
# dmidecode.c: In function 'dmi_ipmi_base_address':
# dmidecode.c:3059:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("0x%02X (SMBus)", (*p) >> 1);
# ^
# In file included from dmidecode.c:63:0:
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3063:17: note: in expansion of macro 'QWORD'
# u64 address = QWORD(p);
# ^
# dmidecode.c:3064:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("0x%08X%08X (%s)", address.h, (address.l & ~1) | lsb,
# ^
# dmidecode.c: In function 'dmi_power_supply_power':
# dmidecode.c:3090:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" Unknown");
# ^
# dmidecode.c: In function 'dmi_additional_info':
# dmidecode.c:3164:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%sAdditional Information %d\n", prefix, i + 1);
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3172:12: note: in expansion of macro 'WORD'
# prefix, WORD(p + 0x01));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3185:22: note: in expansion of macro 'WORD'
# printf("0x%04x", WORD(p + 0x05));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3188:22: note: in expansion of macro 'DWORD'
# printf("0x%08x", DWORD(p + 0x05));
# ^
# dmidecode.c: In function 'dmi_decode':
# dmidecode.c:3239:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("BIOS Information\n");
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3252:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x06) != 0)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3255:6: note: in expansion of macro 'WORD'
# WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3257:38: note: in expansion of macro 'WORD'
# dmi_bios_runtime_size((0x10000 - WORD(data + 0x06)) << 4);
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3263:29: note: in expansion of macro 'QWORD'
# dmi_bios_characteristics(QWORD(data + 0x0A), "\t\t");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3323:6: note: in expansion of macro 'WORD'
# WORD(data + 0x0B));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3358:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x0D));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3411:25: note: in expansion of macro 'WORD'
# dmi_processor_cache(WORD(data + 0x1A), "L1", ver);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3414:25: note: in expansion of macro 'WORD'
# dmi_processor_cache(WORD(data + 0x1C), "L2", ver);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3417:25: note: in expansion of macro 'WORD'
# dmi_processor_cache(WORD(data + 0x1E), "L3", ver);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3431:6: note: in expansion of macro 'WORD'
# WORD(data + 0x2A) : data[0x23]);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3435:6: note: in expansion of macro 'WORD'
# WORD(data + 0x2C) : data[0x24]);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3439:6: note: in expansion of macro 'WORD'
# WORD(data + 0x2E) : data[0x25]);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3441:34: note: in expansion of macro 'WORD'
# dmi_processor_characteristics(WORD(data + 0x26), "\t\t");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3460:33: note: in expansion of macro 'WORD'
# dmi_memory_controller_speeds(WORD(data + 0x09), "\t\t");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3462:28: note: in expansion of macro 'WORD'
# dmi_memory_module_types(WORD(data + 0x0B), "\n\t\t");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3486:28: note: in expansion of macro 'WORD'
# dmi_memory_module_types(WORD(data + 0x07), " ");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3504:5: note: in expansion of macro 'WORD'
# WORD(data + 0x05) & 0x0080 ? "Enabled" : "Disabled",
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3505:5: note: in expansion of macro 'WORD'
# WORD(data + 0x05) & 0x0008 ? "Socketed" : "Not Socketed",
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3506:6: note: in expansion of macro 'WORD'
# (WORD(data + 0x05) & 0x0007) + 1);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3508:21: note: in expansion of macro 'WORD'
# dmi_cache_mode((WORD(data + 0x05) >> 8) & 0x0003));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3510:25: note: in expansion of macro 'WORD'
# dmi_cache_location((WORD(data + 0x05) >> 5) & 0x0003));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3512:19: note: in expansion of macro 'WORD'
# dmi_cache_size(WORD(data + 0x09));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3515:19: note: in expansion of macro 'WORD'
# dmi_cache_size(WORD(data + 0x07));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3518:20: note: in expansion of macro 'WORD'
# dmi_cache_types(WORD(data + 0x0B), "\n\t\t");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3521:20: note: in expansion of macro 'WORD'
# dmi_cache_types(WORD(data + 0x0D), " ");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3569:30: note: in expansion of macro 'WORD'
# dmi_slot_segment_bus_func(WORD(data + 0x0D), data[0x0F], data[0x10], "\t");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3616:5: note: in expansion of macro 'WORD'
# WORD(data + 0x04));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3618:5: note: in expansion of macro 'WORD'
# WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3619:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x08) - WORD(data + 0x06))
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3619:28: note: in expansion of macro 'WORD'
# if (WORD(data + 0x08) - WORD(data + 0x06))
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3621:6: note: in expansion of macro 'WORD'
# WORD(data + 0x08) - WORD(data + 0x06),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3621:26: note: in expansion of macro 'WORD'
# WORD(data + 0x08) - WORD(data + 0x06),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3622:6: note: in expansion of macro 'WORD'
# WORD(data + 0x08) - WORD(data + 0x06) > 1 ? "s" : "");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3622:26: note: in expansion of macro 'WORD'
# WORD(data + 0x08) - WORD(data + 0x06) > 1 ? "s" : "");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3624:5: note: in expansion of macro 'WORD'
# WORD(data + 0x08));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3634:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x0C));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3654:8: note: in expansion of macro 'DWORD'
# if (DWORD(data + 0x07) == 0x80000000)
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3659:28: note: in expansion of macro 'QWORD'
# dmi_print_memory_size(QWORD(data + 0x0F), 0);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3666:18: note: in expansion of macro 'DWORD'
# capacity.l = DWORD(data + 0x07);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3673:35: note: in expansion of macro 'WORD'
# dmi_memory_array_error_handle(WORD(data + 0x0B));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3677:5: note: in expansion of macro 'WORD'
# WORD(data + 0x0D));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3686:6: note: in expansion of macro 'WORD'
# WORD(data + 0x04));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3688:35: note: in expansion of macro 'WORD'
# dmi_memory_array_error_handle(WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3692:28: note: in expansion of macro 'WORD'
# dmi_memory_device_width(WORD(data + 0x08));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3695:28: note: in expansion of macro 'WORD'
# dmi_memory_device_width(WORD(data + 0x0A));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3698:29: note: in expansion of macro 'WORD'
# if (h->length >= 0x20 && WORD(data + 0x0C) == 0x7FFF)
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3699:37: note: in expansion of macro 'DWORD'
# dmi_memory_device_extended_size(DWORD(data + 0x1C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3701:28: note: in expansion of macro 'WORD'
# dmi_memory_device_size(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3715:34: note: in expansion of macro 'WORD'
# dmi_memory_device_type_detail(WORD(data + 0x13));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3719:28: note: in expansion of macro 'WORD'
# dmi_memory_device_speed(WORD(data + 0x15));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3739:28: note: in expansion of macro 'WORD'
# dmi_memory_device_speed(WORD(data + 0x20));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3743:29: note: in expansion of macro 'WORD'
# dmi_memory_voltage_value(WORD(data + 0x22));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3746:29: note: in expansion of macro 'WORD'
# dmi_memory_voltage_value(WORD(data + 0x24));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3749:29: note: in expansion of macro 'WORD'
# dmi_memory_voltage_value(WORD(data + 0x26));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3763:30: note: in expansion of macro 'DWORD'
# dmi_memory_error_syndrome(DWORD(data + 0x07));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3766:35: note: in expansion of macro 'DWORD'
# dmi_32bit_memory_error_address(DWORD(data + 0x0B));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3769:35: note: in expansion of macro 'DWORD'
# dmi_32bit_memory_error_address(DWORD(data + 0x0F));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3772:35: note: in expansion of macro 'DWORD'
# dmi_32bit_memory_error_address(DWORD(data + 0x13));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3779:29: note: in expansion of macro 'DWORD'
# if (h->length >= 0x1F && DWORD(data + 0x04) == 0xFFFFFFFF)
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3783:13: note: in expansion of macro 'QWORD'
# start = QWORD(data + 0x0F);
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3784:11: note: in expansion of macro 'QWORD'
# end = QWORD(data + 0x17);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3796:6: note: in expansion of macro 'DWORD'
# DWORD(data + 0x04) >> 2,
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3797:7: note: in expansion of macro 'DWORD'
# (DWORD(data + 0x04) & 0x3) << 10);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3799:6: note: in expansion of macro 'DWORD'
# DWORD(data + 0x08) >> 2,
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3800:8: note: in expansion of macro 'DWORD'
# ((DWORD(data + 0x08) & 0x3) << 10) + 0x3FF);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3802:29: note: in expansion of macro 'DWORD'
# dmi_mapped_address_size(DWORD(data + 0x08) - DWORD(data + 0x04) + 1);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3802:50: note: in expansion of macro 'DWORD'
# dmi_mapped_address_size(DWORD(data + 0x08) - DWORD(data + 0x04) + 1);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3807:6: note: in expansion of macro 'WORD'
# WORD(data + 0x0C));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3815:29: note: in expansion of macro 'DWORD'
# if (h->length >= 0x23 && DWORD(data + 0x04) == 0xFFFFFFFF)
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3819:13: note: in expansion of macro 'QWORD'
# start = QWORD(data + 0x13);
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:3820:11: note: in expansion of macro 'QWORD'
# end = QWORD(data + 0x1B);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3832:6: note: in expansion of macro 'DWORD'
# DWORD(data + 0x04) >> 2,
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3833:7: note: in expansion of macro 'DWORD'
# (DWORD(data + 0x04) & 0x3) << 10);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3835:6: note: in expansion of macro 'DWORD'
# DWORD(data + 0x08) >> 2,
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3836:8: note: in expansion of macro 'DWORD'
# ((DWORD(data + 0x08) & 0x3) << 10) + 0x3FF);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3838:29: note: in expansion of macro 'DWORD'
# dmi_mapped_address_size(DWORD(data + 0x08) - DWORD(data + 0x04) + 1);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3838:50: note: in expansion of macro 'DWORD'
# dmi_mapped_address_size(DWORD(data + 0x08) - DWORD(data + 0x04) + 1);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3844:6: note: in expansion of macro 'WORD'
# WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3846:6: note: in expansion of macro 'WORD'
# WORD(data + 0x0E));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3886:26: note: in expansion of macro 'WORD'
# dmi_battery_capacity(WORD(data + 0x0A), 1);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3888:26: note: in expansion of macro 'WORD'
# dmi_battery_capacity(WORD(data + 0x0A), data[0x15]);
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3891:24: note: in expansion of macro 'WORD'
# dmi_battery_voltage(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3901:6: note: in expansion of macro 'WORD'
# WORD(data + 0x10));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3904:14: note: in expansion of macro 'WORD'
# 1980 + (WORD(data + 0x12) >> 9),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3905:7: note: in expansion of macro 'WORD'
# (WORD(data + 0x12) >> 5) & 0x0F,
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3906:6: note: in expansion of macro 'WORD'
# WORD(data + 0x12) & 0x1F);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3911:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x16));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3928:27: note: in expansion of macro 'WORD'
# dmi_system_reset_count(WORD(data + 0x05));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3931:27: note: in expansion of macro 'WORD'
# dmi_system_reset_count(WORD(data + 0x07));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3934:27: note: in expansion of macro 'WORD'
# dmi_system_reset_timer(WORD(data + 0x09));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3937:27: note: in expansion of macro 'WORD'
# dmi_system_reset_timer(WORD(data + 0x0B));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3972:28: note: in expansion of macro 'WORD'
# dmi_voltage_probe_value(WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3975:28: note: in expansion of macro 'WORD'
# dmi_voltage_probe_value(WORD(data + 0x08));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3978:33: note: in expansion of macro 'WORD'
# dmi_voltage_probe_resolution(WORD(data + 0x0A));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3981:28: note: in expansion of macro 'WORD'
# dmi_voltage_probe_value(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3984:23: note: in expansion of macro 'WORD'
# dmi_probe_accuracy(WORD(data + 0x0E));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:3987:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x10));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3990:28: note: in expansion of macro 'WORD'
# dmi_voltage_probe_value(WORD(data + 0x14));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3997:37: note: in expansion of macro 'WORD'
# if (!(opt.flags & FLAG_QUIET) && WORD(data + 0x04) != 0xFFFF)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:3999:6: note: in expansion of macro 'WORD'
# WORD(data + 0x04));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4008:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x08));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4011:29: note: in expansion of macro 'WORD'
# dmi_cooling_device_speed(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4027:32: note: in expansion of macro 'WORD'
# dmi_temperature_probe_value(WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4030:32: note: in expansion of macro 'WORD'
# dmi_temperature_probe_value(WORD(data + 0x08));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4033:37: note: in expansion of macro 'WORD'
# dmi_temperature_probe_resolution(WORD(data + 0x0A));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4036:32: note: in expansion of macro 'WORD'
# dmi_temperature_probe_value(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4039:23: note: in expansion of macro 'WORD'
# dmi_probe_accuracy(WORD(data + 0x0E));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4042:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x10));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4045:32: note: in expansion of macro 'WORD'
# dmi_temperature_probe_value(WORD(data + 0x14));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4059:28: note: in expansion of macro 'WORD'
# dmi_current_probe_value(WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4062:28: note: in expansion of macro 'WORD'
# dmi_current_probe_value(WORD(data + 0x08));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4065:33: note: in expansion of macro 'WORD'
# dmi_current_probe_resolution(WORD(data + 0x0A));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4068:28: note: in expansion of macro 'WORD'
# dmi_current_probe_value(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4071:23: note: in expansion of macro 'WORD'
# dmi_probe_accuracy(WORD(data + 0x0E));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4074:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x10));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4077:28: note: in expansion of macro 'WORD'
# dmi_current_probe_value(WORD(data + 0x14));
# ^
# dmidecode.c:4096:5: warning: implicit declaration of function 'checksum' [-Wimplicit-function-declaration]
# checksum(data, h->length) ? "OK" : "Invalid");
# ^
# In file included from dmidecode.c:63:0:
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4098:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x08) >> 16,
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4099:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x08) & 0xFFFF);
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4101:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x0C));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4121:30: note: in expansion of macro 'DWORD'
# dmi_memory_error_syndrome(DWORD(data + 0x07));
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:4124:35: note: in expansion of macro 'QWORD'
# dmi_64bit_memory_error_address(QWORD(data + 0x0B));
# ^
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:4127:35: note: in expansion of macro 'QWORD'
# dmi_64bit_memory_error_address(QWORD(data + 0x13));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4130:35: note: in expansion of macro 'DWORD'
# dmi_32bit_memory_error_address(DWORD(data + 0x1B));
# ^
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4142:5: note: in expansion of macro 'DWORD'
# DWORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4155:6: note: in expansion of macro 'WORD'
# WORD(data + 0x05));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4157:6: note: in expansion of macro 'WORD'
# WORD(data + 0x07));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4158:9: note: in expansion of macro 'WORD'
# if (WORD(data + 0x09) != 0xFFFF)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4160:6: note: in expansion of macro 'WORD'
# WORD(data + 0x09));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4167:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x04) != 0x8000)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4169:11: note: in expansion of macro 'WORD'
# (i16)WORD(data + 0x04));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4170:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x06) != 0x8000)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4172:11: note: in expansion of macro 'WORD'
# (i16)WORD(data + 0x06));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4173:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x08) != 0x8000)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4175:11: note: in expansion of macro 'WORD'
# (i16)WORD(data + 0x08));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4176:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x0A) != 0x8000)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4178:11: note: in expansion of macro 'WORD'
# (i16)WORD(data + 0x0A));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4179:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x0C) != 0x8000)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4181:11: note: in expansion of macro 'WORD'
# (i16)WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4182:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x0E) != 0x8000)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4184:11: note: in expansion of macro 'WORD'
# (i16)WORD(data + 0x0E));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4263:27: note: in expansion of macro 'WORD'
# dmi_power_supply_power(WORD(data + 0x0C));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4266:8: note: in expansion of macro 'WORD'
# if (WORD(data + 0x0E) & (1 << 1))
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4268:31: note: in expansion of macro 'WORD'
# dmi_power_supply_status((WORD(data + 0x0E) >> 7) & 0x07));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4273:28: note: in expansion of macro 'WORD'
# dmi_power_supply_type((WORD(data + 0x0E) >> 10) & 0x0F));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4275:39: note: in expansion of macro 'WORD'
# dmi_power_supply_range_switching((WORD(data + 0x0E) >> 3) & 0x0F));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4277:5: note: in expansion of macro 'WORD'
# WORD(data + 0x0E) & (1 << 2) ? "No" : "Yes");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4279:5: note: in expansion of macro 'WORD'
# WORD(data + 0x0E) & (1 << 0) ? "Yes" : "No");
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4283:9: note: in expansion of macro 'WORD'
# if (WORD(data + 0x10) != 0xFFFF)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4285:7: note: in expansion of macro 'WORD'
# WORD(data + 0x10));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4286:9: note: in expansion of macro 'WORD'
# if (WORD(data + 0x12) != 0xFFFF)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4288:7: note: in expansion of macro 'WORD'
# WORD(data + 0x12));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4289:9: note: in expansion of macro 'WORD'
# if (WORD(data + 0x14) != 0xFFFF)
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4291:7: note: in expansion of macro 'WORD'
# WORD(data + 0x14));
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4311:30: note: in expansion of macro 'WORD'
# dmi_slot_segment_bus_func(WORD(data + 0x07), data[0x09], data[0x0A], "\t");
# ^
# dmidecode.c:4351:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("\n");
# ^
# In file included from dmidecode.c:63:0:
# dmidecode.c: In function 'to_dmi_header':
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4358:14: note: in expansion of macro 'WORD'
# h->handle = WORD(data + 2);
# ^
# dmidecode.c: In function 'dmi_table_string':
# dmidecode.c:4375:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("\n");
# ^
# dmidecode.c: In function 'dmi_table_dump':
# dmidecode.c:4395:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("# Writing %d bytes to %s.\n", len, opt.dumpfile);
# ^
# dmidecode.c:4396:2: warning: implicit declaration of function 'write_dump' [-Wimplicit-function-declaration]
# write_dump(32, len, buf, opt.dumpfile, 0);
# ^
# dmidecode.c: In function 'dmi_table_decode':
# dmidecode.c:4413:27: error: 'NULL' undeclared (first use in this function)
# display = ((opt.type == NULL || opt.type[h.type])
# ^
# dmidecode.c:4413:24: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# display = ((opt.type == NULL || opt.type[h.type])
# ^
# dmidecode.c:4425:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Invalid entry length (%u). DMI table is "
# ^
# dmidecode.c:4437:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Handle 0x%04X, DMI type %d, %d bytes\n",
# ^
# dmidecode.c:4469:23: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# else if (opt.string != NULL
# ^
# dmidecode.c:4488:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Wrong DMI structures count: %d announced, "
# ^
# dmidecode.c: At top level:
# dmidecode.c:4498:23: error: unknown type name 'off_t'
# static void dmi_table(off_t base, u32 len, u16 num, u16 ver, const char *devmem,
# ^
# dmidecode.c: In function 'smbios3_decode':
# dmidecode.c:4591:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("SMBIOS %u.%u.%u present.\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:59:20: warning: cast increases required alignment of target type [-Wcast-align]
# #define QWORD(x) (*(const u64 *)(x))
# ^
# dmidecode.c:4594:11: note: in expansion of macro 'QWORD'
# offset = QWORD(buf + 0x10);
# ^
# dmidecode.c:4595:59: error: 'off_t' undeclared (first use in this function)
# if (!(flags & FLAG_NO_FILE_OFFSET) && offset.h && sizeof(off_t) < 8)
# ^
# dmidecode.c:4595:66: warning: comparison between pointer and integer [enabled by default]
# if (!(flags & FLAG_NO_FILE_OFFSET) && offset.h && sizeof(off_t) < 8)
# ^
# dmidecode.c:4597:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "64-bit addresses not supported, sorry.\n");
# ^
# dmidecode.c:4597:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# dmidecode.c:4597:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "64-bit addresses not supported, sorry.\n");
# ^
# dmidecode.c:4601:2: warning: implicit declaration of function 'dmi_table' [-Wimplicit-function-declaration]
# dmi_table(((off_t)offset.h << 32) | offset.l,
# ^
# dmidecode.c:4601:20: error: expected ')' before 'offset'
# dmi_table(((off_t)offset.h << 32) | offset.l,
# ^
# dmidecode.c:4601:36: error: invalid operands to binary | (have 'const char **' and 'u32')
# dmi_table(((off_t)offset.h << 32) | offset.l,
# ^
# In file included from dmidecode.c:63:0:
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4602:5: note: in expansion of macro 'WORD'
# WORD(buf + 0x0C), 0, ver, devmem, flags | FLAG_STOP_AT_EOT);
# ^
# dmidecode.c:4608:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(crafted, buf, 32);
# ^
# dmidecode.c:4608:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# dmidecode.c: In function 'smbios_decode':
# dmidecode.c:4625:3: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
# || memcmp(buf + 0x10, "_DMI_", 5) != 0
# ^
# dmidecode.c:4636:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("SMBIOS version fixup (2.%d -> 2.%d).\n",
# ^
# dmidecode.c:4648:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("SMBIOS %u.%u present.\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4651:12: note: in expansion of macro 'DWORD'
# dmi_table(DWORD(buf + 0x18), WORD(buf + 0x16), WORD(buf + 0x1C),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4651:31: note: in expansion of macro 'WORD'
# dmi_table(DWORD(buf + 0x18), WORD(buf + 0x16), WORD(buf + 0x1C),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4651:49: note: in expansion of macro 'WORD'
# dmi_table(DWORD(buf + 0x18), WORD(buf + 0x16), WORD(buf + 0x1C),
# ^
# dmidecode.c:4658:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(crafted, buf, 32);
# ^
# dmidecode.c: In function 'legacy_decode':
# dmidecode.c:4676:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Legacy DMI %u.%u present.\n",
# ^
# In file included from dmidecode.c:63:0:
# types.h:58:25: warning: cast increases required alignment of target type [-Wcast-align]
# #define DWORD(x) (u32)(*(const u32 *)(x))
# ^
# dmidecode.c:4679:12: note: in expansion of macro 'DWORD'
# dmi_table(DWORD(buf + 0x08), WORD(buf + 0x06), WORD(buf + 0x0C),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4679:31: note: in expansion of macro 'WORD'
# dmi_table(DWORD(buf + 0x08), WORD(buf + 0x06), WORD(buf + 0x0C),
# ^
# types.h:57:24: warning: cast increases required alignment of target type [-Wcast-align]
# #define WORD(x) (u16)(*(const u16 *)(x))
# ^
# dmidecode.c:4679:49: note: in expansion of macro 'WORD'
# dmi_table(DWORD(buf + 0x08), WORD(buf + 0x06), WORD(buf + 0x0C),
# ^
# dmidecode.c:4686:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(crafted, buf, 16);
# ^
# dmidecode.c: At top level:
# dmidecode.c:4703:29: error: unknown type name 'off_t'
# static int address_from_efi(off_t *address)
# ^
# dmidecode.c: In function 'main':
# dmidecode.c:4750:2: error: unknown type name 'off_t'
# off_t fp;
# ^
# dmidecode.c:4756:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "%s: compiler incompatibility\n", argv[0]);
# ^
# dmidecode.c:4756:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "%s: compiler incompatibility\n", argv[0]);
# ^
# dmidecode.c:4757:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(255);
# ^
# dmidecode.c:4757:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# dmidecode.c:4778:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s\n", VERSION);
# ^
# dmidecode.c:4783:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("# dmidecode %s\n", VERSION);
# ^
# dmidecode.c:4791:3: warning: implicit declaration of function 'mem_chunk' [-Wimplicit-function-declaration]
# if ((buf = mem_chunk(0, 0x20, opt.dumpfile)) == NULL)
# ^
# dmidecode.c:4791:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((buf = mem_chunk(0, 0x20, opt.dumpfile)) == NULL)
# ^
# dmidecode.c:4791:51: error: 'NULL' undeclared (first use in this function)
# if ((buf = mem_chunk(0, 0x20, opt.dumpfile)) == NULL)
# ^
# dmidecode.c:4791:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((buf = mem_chunk(0, 0x20, opt.dumpfile)) == NULL)
# ^
# dmidecode.c:4821:3: warning: implicit declaration of function 'read_file' [-Wimplicit-function-declaration]
# && (buf = read_file(0x20, SYS_ENTRY_FILE)) != NULL)
# ^
# dmidecode.c:4821:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# && (buf = read_file(0x20, SYS_ENTRY_FILE)) != NULL)
# ^
# dmidecode.c:4821:46: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# && (buf = read_file(0x20, SYS_ENTRY_FILE)) != NULL)
# ^
# dmidecode.c:4848:2: warning: implicit declaration of function 'address_from_efi' [-Wimplicit-function-declaration]
# efi = address_from_efi(&fp);
# ^
# dmidecode.c:4861:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((buf = mem_chunk(fp, 0x20, opt.devmem)) == NULL)
# ^
# dmidecode.c:4861:46: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((buf = mem_chunk(fp, 0x20, opt.devmem)) == NULL)
# ^
# dmidecode.c:4875:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((buf = mem_chunk(0xF0000, 0x10000, opt.devmem)) == NULL)
# ^
# dmidecode.c:4875:54: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((buf = mem_chunk(0xF0000, 0x10000, opt.devmem)) == NULL)
# ^
# dmidecode.c:4910:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(buf);
# ^
# dmidecode.c:4910:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# dmidecode.c: At top level:
# dmidecode.c:4392:13: warning: 'dmi_table_dump' defined but not used [-Wunused-function]
# static void dmi_table_dump(const u8 *buf, u32 len)
# ^
# dmidecode.c:4399:13: warning: 'dmi_table_decode' defined but not used [-Wunused-function]
# static void dmi_table_decode(u8 *buf, u32 len, u16 num, u16 ver, u32 flags)
# ^
# make: *** [Makefile:82: dmidecode.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...