diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-14 00:14:43 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-14 00:14:43 +0000 |
commit | d84a69e187dd9b55b98e3a228ef29a535a3e28a6 (patch) | |
tree | 94ff735d31fa4a5ab79ef430a89b7a187466ea3f /package/libnl-tiny | |
parent | 1ca915970eebe7b5489099239eed0bc5c83b3fd3 (diff) | |
download | mtk-20170518-d84a69e187dd9b55b98e3a228ef29a535a3e28a6.zip mtk-20170518-d84a69e187dd9b55b98e3a228ef29a535a3e28a6.tar.gz mtk-20170518-d84a69e187dd9b55b98e3a228ef29a535a3e28a6.tar.bz2 |
libnl-tiny: fix a compiler warning that shows up with -pedantic
SVN-Revision: 23431
Diffstat (limited to 'package/libnl-tiny')
-rw-r--r-- | package/libnl-tiny/src/include/netlink/types.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/libnl-tiny/src/include/netlink/types.h b/package/libnl-tiny/src/include/netlink/types.h index 6d8aaf8..de81ace 100644 --- a/package/libnl-tiny/src/include/netlink/types.h +++ b/package/libnl-tiny/src/include/netlink/types.h @@ -108,10 +108,14 @@ struct nl_dump_params unsigned int dp_line; }; +#ifndef __GNUC__ +#define __extension__ +#endif + #define min_t(type,x,y) \ - ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) + __extension__({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) #define max_t(type,x,y) \ - ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; }) + __extension__({ type __x = (x); type __y = (y); __x > __y ? __x: __y; }) #endif |