aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/nocscript/function_table.cpp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2016-12-19 16:28:16 -0800
committerMartin Braun <martin.braun@ettus.com>2017-01-12 15:15:37 -0800
commita12fc913a078c6c2cf16787e64f4f24d448ff2f6 (patch)
tree7b0b72e452551d9770a5b9c5d0ecda2a3fe83da5 /host/lib/rfnoc/nocscript/function_table.cpp
parent6e3939f4a56e8daa82fe00c130208cbe6db3f7c1 (diff)
downloaduhd-a12fc913a078c6c2cf16787e64f4f24d448ff2f6.tar.gz
uhd-a12fc913a078c6c2cf16787e64f4f24d448ff2f6.tar.bz2
uhd-a12fc913a078c6c2cf16787e64f4f24d448ff2f6.zip
lib: add default ctors to structs and initialize members properly
Diffstat (limited to 'host/lib/rfnoc/nocscript/function_table.cpp')
-rw-r--r--host/lib/rfnoc/nocscript/function_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/rfnoc/nocscript/function_table.cpp b/host/lib/rfnoc/nocscript/function_table.cpp
index bebceb8dc..a4e36c1a1 100644
--- a/host/lib/rfnoc/nocscript/function_table.cpp
+++ b/host/lib/rfnoc/nocscript/function_table.cpp
@@ -31,7 +31,7 @@ class function_table_impl : public function_table
expression::type_t return_type;
function_ptr function;
- function_info() {};
+ function_info(): return_type(expression::TYPE_INT) {};
function_info(const expression::type_t return_type_, const function_ptr &function_)
: return_type(return_type_), function(function_)
{};