Skip to content

Commit db726c4

Browse files
thughesnashif
authored andcommitted
sw_isr_table: Add spaces to fix compiler warning
When using clang to build a C++ file that includes this file, it warns: include/zephyr/sw_isr_table.h:195:28: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "." Z_STRINGIFY(prefix)"."file"." Z_STRINGIFY(counter) Signed-off-by: Tom Hughes <tomhughes@chromium.org>
1 parent ae114f1 commit db726c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/sw_isr_table.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ extern struct z_shared_isr_table_entry z_shared_sw_isr_table[];
191191
#define _MK_IRQ_ELEMENT_NAME(func, id) __MK_ISR_ELEMENT_NAME(func, id)
192192
#define __MK_IRQ_ELEMENT_NAME(func, id) __irq_table_entry_ ## func ## _irq_ ## id
193193

194-
#define _MK_ISR_SECTION_NAME(prefix, file, counter) \
195-
"." Z_STRINGIFY(prefix)"."file"." Z_STRINGIFY(counter)
194+
#define _MK_ISR_SECTION_NAME(prefix, file, counter) \
195+
"." Z_STRINGIFY(prefix) "." file "." Z_STRINGIFY(counter)
196196

197197
#define _MK_ISR_ELEMENT_SECTION(counter) _MK_ISR_SECTION_NAME(irq, __FILE__, counter)
198198
#define _MK_IRQ_ELEMENT_SECTION(counter) _MK_ISR_SECTION_NAME(isr, __FILE__, counter)

0 commit comments

Comments
 (0)