fix linux compilation bugs
diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py
index 9f15fcc..38468e8 100644
--- a/.waf-tools/default-compiler-flags.py
+++ b/.waf-tools/default-compiler-flags.py
@@ -108,6 +108,7 @@
'-Werror',
'-Wno-unused-parameter',
'-Wno-error=maybe-uninitialized', # Bug #1615
+ '-fPIC',
]
return flags
@@ -119,6 +120,7 @@
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
+ '-fPIC',
]
return flags
diff --git a/src/fib-status.cpp b/src/fib-status.cpp
index eaae8af..8f56483 100644
--- a/src/fib-status.cpp
+++ b/src/fib-status.cpp
@@ -65,9 +65,9 @@
if (role == PrefixRole) {
return item.prefix();
} else if (role == FaceIdRole) {
- return item.faceId();
+ return static_cast<uint>(item.faceId());
} else if (role == CostRole) {
- return item.cost();
+ return static_cast<uint>(item.cost());
}
return QVariant();
diff --git a/wscript b/wscript
index 4920f07..d2e6e0b 100644
--- a/wscript
+++ b/wscript
@@ -37,7 +37,7 @@
)
if Utils.unversioned_sys_platform() != "darwin":
- app.target = "nfd-control-center",
+ app.target = "nfd-control-center"
bld(features = "subst",
source = 'src/nfd-control-center.desktop.in',