LoginSignup
1
1

More than 5 years have passed since last update.

[メモ] ArduinoFFTのコンパイル警告への対応

Last updated at Posted at 2016-04-21

ArduinoFFTライブラリ を使ったプログラムをArduino IDE 1.6.8でコンパイルしたところ、次のような警告が大量に発生しました。

/Users/foo/Documents/Arduino/libraries/FFT/FFT.h:182:3: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
"ldi r16, "STRINGIFY(FFT_N/2)" \n" // prep loop counter

警告をなくすためには、FFT.hのインラインアセンブラ文字列中の各所にあるSTRINGIFY()の前後にスペースを挿入します。

FFT.h
   "ldi r16, " STRINGIFY(FFT_N/2) " \n" // prep loop counter

参考

Stringification

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1