busybox
The symbol TIME_MASK is only define when FEATURE_LS_TIMESTAMPS is enabled.
Bug fixed by commit b7ebc61b54f
Type | UndeclaredIdentifier |
Config | !FEATURE_LS_TIMESTAMPS (1st degree) |
Fix-in | mapping |
Location | coreutils/ |
#include <stdlib.h> #ifdef CONFIG_FEATURE_LS_TIMESTAMPS #define TIME_MASK (3U<<23) #endif #define LIST_FILENAME (1U<<11) static unsigned int all_fmt; int main(int argc, char** argv) { all_fmt = LIST_FILENAME; if (rand() % 2) { all_fmt &= ~TIME_MASK; } return 0; }
diff --git a/simple/b7ebc61.c b/simple/b7ebc61.c --- a/simple/b7ebc61.c +++ b/simple/b7ebc61.c @@ -13,9 +13,11 @@ { all_fmt = LIST_FILENAME; +#ifdef CONFIG_FEATURE_LS_TIMESTAMPS if (rand() % 2) { all_fmt &= ~TIME_MASK; } +#endif return 0; } \ No newline at end of file
#include <stdlib.h> #ifdef CONFIG_FEATURE_LS_TIMESTAMPS #define TIME_MASK (3U<<23) #endif #define LIST_FILENAME (1U<<11) static unsigned int all_fmt; int main(int argc, char** argv) { all_fmt = LIST_FILENAME; if (rand() % 2) { all_fmt &= ~TIME_MASK; } return 0; }
. [FEATURE_LS_TIMESTAMPS] coreutils/ls.c:144:#define TIME_MASK (3U<<23) . ERROR coreutils/ls.c:977:all_fmt &= ~TIME_MASK;