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

playsound: Remove __has_include macro for <alsa/asoundlib.h> #851

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Nov 7, 2021

playsound: Remove __has_include macro for <alsa/asoundlib.h>

alsa-libのヘッダーファイル alsa/asoundlib.h2001年から導入されているため現状サポートしているディストロでは利用可能です。
そのためヘッダーのチェックを整理してcppcheckのレポート(誤検知?)を解消します。

cppcheck 2.3のレポート

src/sound/playsound.cpp:15:0: error: failed to evaluate #if condition, division/modulo by zero [preprocessorErrorDirective]
#if __has_include(<alsa/asoundlib.h>)
^

playsound: Organize header files

alsa-libのヘッダーファイル `alsa/asoundlib.h` は2001年[1]から
導入されているため現状サポートしているディストロでは利用可能です。
そのためヘッダーのチェックを整理してcppcheckのレポート(誤検知?)
を解消します。

cppcheck 2.3のレポート
```
src/sound/playsound.cpp:15:0: error: failed to evaluate #if condition, division/modulo by zero [preprocessorErrorDirective]
\#if __has_include(<alsa/asoundlib.h>)
^
```

[1]: alsa-project/alsa-lib@0a8749a
@ma8ma ma8ma added refactoring コードの整理 (バグ修正でも機能変更でもない) build ビルドに関するトピック labels Nov 7, 2021
@ma8ma ma8ma added this to In progress in State of JDim-v0.6.0+ via automation Nov 7, 2021
@ma8ma ma8ma merged commit 7166305 into JDimproved:master Nov 7, 2021
State of JDim-v0.6.0+ automation moved this from In progress to Done Nov 7, 2021
@ma8ma ma8ma deleted the playsound-remove-has_include-macro-for-alsa_asoundlib_h branch November 7, 2021 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build ビルドに関するトピック refactoring コードの整理 (バグ修正でも機能変更でもない)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant