mirror of
https://github.com/openwrt/openwrt.git
synced 2024-11-24 02:16:29 +08:00
libnl-tiny: fix a compiler warning that shows up with -pedantic
SVN-Revision: 23431
This commit is contained in:
parent
1ca915970e
commit
d84a69e187
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user