C++20 report error at file rte_spinlock.h

2022-12-18 Thread Zhou, Xiangyun
Dear dpdk dev, I'm using dpdk 21.11 LTS, when compile my program with CPP flag "-std=c++20", the compiler report below errors. After checking file rte_spinlock.h, I think the error report by compiler is valid, there should be a potential issue when using functions rte_spinlock_recursive_lock, r

RE: C++20 report error at file rte_spinlock.h

2022-12-21 Thread Zhou, Xiangyun
Thanks very much for Konstantin and Tyler's analyzing. I agree that removal of 'volatile' is enough. A spinlock has already used to protect these variables. -Original Message- From: Konstantin Ananyev Sent: Tuesday, December 20, 2022 12:51 AM To: Tyler Retzlaff ; Zhou