introduce -Wundef check to catch macro typos
more infos about motivation at https://sourceware.org/glibc/wiki/Wundef
TODO: better define mc_fhl_* as macros too
patch 02/04: remove superfluous macro check
Signed-off-by: Andreas Mohr <and@gmx.li>
a
|
b
|
|
49 | 49 | inline static gboolean |
50 | 50 | mc_fhl_is_file (file_entry_t * fe) |
51 | 51 | { |
52 | | #if S_ISREG == 0 |
53 | | (void) fe; |
54 | | #endif |
55 | 52 | return S_ISREG (fe->st.st_mode); |
56 | 53 | } |
57 | 54 | |
… |
… |
|
64 | 61 | inline static gboolean |
65 | 62 | mc_fhl_is_dir (file_entry_t * fe) |
66 | 63 | { |
67 | | #if S_ISDIR == 0 |
68 | | (void) fe; |
69 | | #endif |
70 | 64 | return S_ISDIR (fe->st.st_mode); |
71 | 65 | } |
72 | 66 | |
73 | 67 | inline static gboolean |
74 | 68 | mc_fhl_is_link (file_entry_t * fe) |
75 | 69 | { |
76 | | #if S_ISLNK == 0 |
77 | | (void) fe; |
78 | | #endif |
79 | 70 | return S_ISLNK (fe->st.st_mode); |
80 | 71 | } |
81 | 72 | |
… |
… |
|
100 | 91 | inline static gboolean |
101 | 92 | mc_fhl_is_device_char (file_entry_t * fe) |
102 | 93 | { |
103 | | #if S_ISCHR == 0 |
104 | | (void) fe; |
105 | | #endif |
106 | 94 | return S_ISCHR (fe->st.st_mode); |
107 | 95 | } |
108 | 96 | |
109 | 97 | inline static gboolean |
110 | 98 | mc_fhl_is_device_block (file_entry_t * fe) |
111 | 99 | { |
112 | | #if S_ISBLK == 0 |
113 | | (void) fe; |
114 | | #endif |
115 | 100 | return S_ISBLK (fe->st.st_mode); |
116 | 101 | } |
117 | 102 | |
118 | 103 | inline static gboolean |
119 | 104 | mc_fhl_is_special_socket (file_entry_t * fe) |
120 | 105 | { |
121 | | #if S_ISSOCK == 0 |
122 | | (void) fe; |
123 | | #endif |
124 | 106 | return S_ISSOCK (fe->st.st_mode); |
125 | 107 | } |
126 | 108 | |
127 | 109 | inline static gboolean |
128 | 110 | mc_fhl_is_special_fifo (file_entry_t * fe) |
129 | 111 | { |
130 | | #if S_ISFIFO == 0 |
131 | | (void) fe; |
132 | | #endif |
133 | 112 | return S_ISFIFO (fe->st.st_mode); |
134 | 113 | } |
135 | 114 | |
136 | 115 | inline static gboolean |
137 | 116 | mc_fhl_is_special_door (file_entry_t * fe) |
138 | 117 | { |
139 | | #if S_ISDOOR == 0 |
140 | | (void) fe; |
141 | | #endif |
142 | | |
143 | 118 | return S_ISDOOR (fe->st.st_mode); |
144 | 119 | } |
145 | 120 | |
146 | | |
147 | 121 | inline static gboolean |
148 | 122 | mc_fhl_is_special (file_entry_t * fe) |
149 | 123 | { |