diff options
author | Maciej Kisielewski <maciej.kisielewski@canonical.com> | 2019-09-13 18:10:53 +0200 |
---|---|---|
committer | Maciej Kisielewski <maciej.kisielewski@canonical.com> | 2019-09-13 18:10:53 +0200 |
commit | 773339d3688089e418fed13f20732e8486034968 (patch) | |
tree | f01fa09e255f0469dbac4b933f5510330f483a66 | |
parent | 2024e32085ffa497e2066a143089311b04676ab4 (diff) |
alsa_test: fix warnings regarding no return statement
-rw-r--r-- | src/alsa_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/alsa_test.cpp b/src/alsa_test.cpp index dd7eeb4..3e9ded5 100644 --- a/src/alsa_test.cpp +++ b/src/alsa_test.cpp @@ -54,7 +54,9 @@ private: Level level; struct NullStream : std::ostream { template<typename T> - NullStream& operator<<(T const&) {} + NullStream& operator<<(T const&) { + return *this; + } }; NullStream nullStream; }; @@ -327,6 +329,7 @@ int playback_test(float duration, int sampling_rate, const char* capture_pcm, co auto player = Alsa::Pcm<storage_type>(); player.set_params(sampling_rate); player.sine(440, duration, 0.5f); + return 0; } template<class storage_type> |