Skip to content

Commit

Permalink
Use compiler flag "-pedantic-errors"
Browse files Browse the repository at this point in the history
コンパイラの拡張機能を禁止し標準に準拠する。

./configureの引数に与えられたCXXFLAGSをJDのフラグより後ろに展開する。
clangは後ろのフラグを優先するため前で展開すると上書きできない場合がある。
  • Loading branch information
ma8ma committed Dec 24, 2018
1 parent 14364c6 commit a98ad62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dnl

dnl 追加コンパイルオプション
dnl -Wextraで有効になる-Wunused-parameterは修正方法の検討が必要なので暫定的に無効
CXXFLAGS="-ggdb -Wall -Wextra -Wno-unused-parameter -pedantic-errors $CXXFLAGS"
CXXFLAGS="-ggdb -Wall -Wextra -Wno-unused-parameter -pedantic $CXXFLAGS"

dnl ---------------------------------------------------
dnl ---------------------------------------------------
Expand Down

0 comments on commit a98ad62

Please sign in to comment.