Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use -Wextra option #23

Merged
merged 5 commits into from Jan 9, 2019
Merged

Use -Wextra option #23

merged 5 commits into from Jan 9, 2019

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Jan 5, 2019

ビルドの設定にコンパイラのオプション-Wextraを追加しソースコードのチェックを強化します。
修正した行数が多いので後続の修正(gtk3サポート)は様子を見て提出します。

  • 未使用引数の警告は-Wno-unused-parameterオプションで暫定的に無効にします。修正は未定です。
  • Glib::StaticMutex(glibmm 2.48から非推奨)の使用をやめてstd::mutexを使うようになります。(18e0bd2)

* -Wextraで有効になる-Wunused-parameterは修正方法が複数あり
  検討が必要なので暫定的に無効にする
* Fix warning for 'const' type qualifier on return type has no effect
* Fix compile warning for missing field unused initializer
C++11では属性[[fallthrough]]が使えないのでGCC 7が認識するコメント[1]
// fallthrough
を代わりに記述し警告を抑制する

[1] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough_003d
@yama-natuki yama-natuki merged commit df8e0c1 into JDimproved:test Jan 9, 2019
@yama-natuki
Copy link
Collaborator

ありがとうございます。

@ma8ma ma8ma deleted the use-wextra-option branch January 9, 2019 12:41
@ma8ma ma8ma mentioned this pull request Jan 9, 2019
6 tasks
ma8ma added a commit to ma8ma/JDim that referenced this pull request Jan 24, 2019
testブランチの更新をgtk3-previewに反映する
* JDimproved#22
* JDimproved#23
* JDimproved#24

Closes #20
@ma8ma ma8ma added the feature 機能の追加と削除 label Feb 28, 2019
@ma8ma ma8ma added the build ビルドに関するトピック label Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build ビルドに関するトピック feature 機能の追加と削除
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants