mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
Latest clang git has a warning -Wnull-pointer-arithmetic which will trigger a -Werror failure. Addition and subtraction from a null pointer is undefined behaviour and could be optimized into anything. Furthermore, using the difference between two pointers and casting the result back to a pointer is not portable since the size of ptrdiff_t does not necessary have to be the same as size of void* (this happens e.g. on CHERI). Using intptr_t instead fixes this portability issue and the compiler warning. Submitted by; Alexander Richardson Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D12928 MFC after: 3 days |
||
|---|---|---|
| .. | ||
| aout | ||
| coff | ||
| elf | ||
| opcode | ||
| alloca-conf.h | ||
| ansidecl.h | ||
| bfdlink.h | ||
| ChangeLog | ||
| demangle.h | ||
| dis-asm.h | ||
| dyn-string.h | ||
| fibheap.h | ||
| filenames.h | ||
| floatformat.h | ||
| fnmatch.h | ||
| fopen-bin.h | ||
| fopen-same.h | ||
| gdbm.h | ||
| hashtab.h | ||
| ieee.h | ||
| libiberty.h | ||
| MAINTAINERS | ||
| md5.h | ||
| objalloc.h | ||
| obstack.h | ||
| partition.h | ||
| progress.h | ||
| safe-ctype.h | ||
| sort.h | ||
| splay-tree.h | ||
| symcat.h | ||
| ternary.h | ||
| xregex.h | ||
| xregex2.h | ||