You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAX can already be defined and causes a compilation error due to being redefined:
CC [M] /usr/src/dahdi-linux-3.4.0/drivers/dahdi/wctdm24xxp/base.o
/usr/src/dahdi-linux-3.4.0/drivers/dahdi/wctdm24xxp/base.c: In function 'wait_access':
/usr/src/dahdi-linux-3.4.0/drivers/dahdi/wctdm24xxp/base.c:1519: error: "MAX" redefined [-Werror]
1519 | #define MAX 10 /* attempts */
|
In file included from ./include/linux/kernel.h:28,
from /usr/src/dahdi-linux-3.4.0/drivers/dahdi/wctdm24xxp/base.c:41:
./include/linux/minmax.h:330: note: this is the location of the previous definition
330 | #define MAX(a,b) __cmp(max,a,b)
cc1: all warnings being treated as errors
The text was updated successfully, but these errors were encountered:
MAX can already be defined by the kernel headers and cause
compilation failure due to the redefinition, so use
MAX_ATTEMPTS to a more descriptive and non-conflicting name.
Resolves: asterisk#61
MAX can already be defined by the kernel headers and cause
compilation failure due to the redefinition, so use
MAX_ATTEMPTS to a more descriptive and non-conflicting name.
Resolves: asterisk#61
MAX
can already be defined and causes a compilation error due to being redefined:The text was updated successfully, but these errors were encountered: