File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ CONFIG += ptpdevices #enables ptp cameras
12
12
13
13
QMAKE_CXXFLAGS += -std =c ++11 -Wall -Werror =strict-aliasing -fstrict-aliasing -Wctor-dtor-privacy -Werror =delete-non-virtual-dtor
14
14
QMAKE_CXXFLAGS += -fexceptions -Werror =return-type -Werror =overloaded-virtual
15
+ QMAKE_CXXFLAGS += -Werror =strict-aliasing -Wstrict-aliasing =2
15
16
16
17
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
17
18
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ v4l2device::devices_list_t v4l2device::list_attached_devices(v4l2device::ListTyp
80
80
v4l2_capability cap;
81
81
tmp.querycap (cap);
82
82
tmp.close ();
83
- inf.devname = std::string (utility::union_cast <const char *>(cap.card ));
83
+ inf.devname = std::string (reinterpret_cast <const char *>(cap.card ));
84
84
inf.devCaps = cap.device_caps ;
85
85
86
86
res.push_back (inf);
@@ -180,14 +180,14 @@ bool v4l2device::open(const std::string &device)
180
180
181
181
bool v4l2device::reopen ()
182
182
{
183
- std::string currName (utility::union_cast <const char *>(m_capability.card ));
183
+ std::string currName (reinterpret_cast <const char *>(m_capability.card ));
184
184
std::string d = m_device;
185
185
auto ca = m_capability;
186
186
bool w = usingWrapper;
187
187
188
188
auto r = open (d, usingWrapper);
189
189
190
- if (r && currName != std::string (utility::union_cast <const char *>(m_capability.card )))
190
+ if (r && currName != std::string (reinterpret_cast <const char *>(m_capability.card )))
191
191
{
192
192
close (); // opened something, but it's other device
193
193
r = false ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class OnlineStacker : public ILiveFilter
11
11
{
12
12
public:
13
13
14
- using RGBVectorSum = std::vector<uint32_t >;
14
+ using RGBVectorSum = std::vector<uint64_t >;
15
15
using QueuedElement = RGBVector;
16
16
using RGBQueue = std::deque<std::shared_ptr<QueuedElement>>;
17
17
private:
You can’t perform that action at this time.
0 commit comments