Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はmacro次のように定義されています。
macro
#define next_position() (bit ? *str++ : (*str++) & 0xff) warning: expression result unused [-Wunused-value]
Clang最初の*str++ものはマクロで使用されていないと言っていますがgcc、この「警告」は表示されませんでした。これはコンパイラのバグですか? どうすれば回避できますか?正当な警告のようです。
Clang
*str++
gcc