Module: sems Branch: master Commit: cd2919b5730b4db53a6be0b42e62486f3807ec85 URL: https://github.com/sems-server/sems/commit/cd2919b5730b4db53a6be0b42e62486f3807ec85
Author: juha-h <[email protected]> Committer: juha-h <[email protected]> Date: 2016-04-26T15:38:33+03:00 Merge pull request #28 from mslehto/Wextra Wextra suggestions --- Modified: core/AmArg.cpp Modified: core/AmArg.h Modified: core/AmPlugIn.cpp Modified: core/AmPrecodedFile.cpp --- Diff: https://github.com/sems-server/sems/commit/cd2919b5730b4db53a6be0b42e62486f3807ec85.diff Patch: https://github.com/sems-server/sems/commit/cd2919b5730b4db53a6be0b42e62486f3807ec85.patch --- diff --git a/core/AmArg.cpp b/core/AmArg.cpp index 2dcbde8..7f404a2 100644 --- a/core/AmArg.cpp +++ b/core/AmArg.cpp @@ -472,7 +472,7 @@ string AmArg::print(const AmArg &a) { return "<UNKONWN TYPE>"; } -const int arg2int(const AmArg &a) +int arg2int(const AmArg &a) { if (isArgInt(a)) return a.asInt(); if (isArgBool(a)) return a.asBool(); diff --git a/core/AmArg.h b/core/AmArg.h index 28dd2b5..f37a278 100644 --- a/core/AmArg.h +++ b/core/AmArg.h @@ -367,7 +367,7 @@ class AmArg // equality bool operator==(const AmArg& lhs, const AmArg& rhs); -const int arg2int(const AmArg &a); +int arg2int(const AmArg &a); string arg2str(const AmArg &a); #endif diff --git a/core/AmPlugIn.cpp b/core/AmPlugIn.cpp index 3e82557..db05d58 100644 --- a/core/AmPlugIn.cpp +++ b/core/AmPlugIn.cpp @@ -78,7 +78,8 @@ amci_codec_t _codec_pcm16 = { NULL, NULL, pcm16_bytes2samples, - pcm16_samples2bytes + pcm16_samples2bytes, + NULL }; amci_codec_t _codec_tevent = { @@ -89,7 +90,8 @@ amci_codec_t _codec_tevent = { NULL, NULL, tevent_bytes2samples, - tevent_samples2bytes + tevent_samples2bytes, + NULL }; amci_payload_t _payload_tevent = { diff --git a/core/AmPrecodedFile.cpp b/core/AmPrecodedFile.cpp index c0f3064..84062af 100644 --- a/core/AmPrecodedFile.cpp +++ b/core/AmPrecodedFile.cpp @@ -51,7 +51,8 @@ amci_codec_t _codec_precoded = { NULL, NULL, precoded_bytes2samples, - precoded_samples2bytes + precoded_samples2bytes, + NULL }; void AmPrecodedFile::initPlugin() { _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
