chiark / gitweb /
macro: const'ify MIN/MAX/... macros
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 15 Aug 2014 14:16:30 +0000 (16:16 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 15 Aug 2014 14:59:09 +0000 (16:59 +0200)
commitfdcba430aeae442ab0ea12a08d96cfc3d13f57ef
tree0b5281a02743d490dcef43c0f89ec5edf0569dcf
parent4de120ee442797bc30ecfd25b4d539cac9cb56ce
macro: const'ify MIN/MAX/... macros

We must add 'const' to local variables in statement-expressions to
guarantee that the macros can produce constant-expressions if given such.
GCC seems to ignore this, but LLVM/clang requires it (understandably).
src/shared/macro.h