tsto / notmuchfs

A virtual maildir file system for notmuch queries
Other
89 stars 11 forks source link

Fix compilation on 32-bit systems #1

Closed mbethke closed 10 years ago

mbethke commented 11 years ago

Compilation on 32-bit bombs out due to uint64_t not being the same size as a pointer:

cc -g -O2 -std=c99 -Wall -Werror -D_FILE_OFFSET_BITS=64   -c -MD -o notmuchfs.o notmuchfs.c
notmuchfs.c: In function ‘notmuchfs_opendir’:
notmuchfs.c:493:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]

Of course storing pointers in a bigger integer is perfectly safe so we just have to make these warnings non-fatal.

tsto commented 10 years ago

Thanks - I fixed it at the root rather than suppressing the warnings.