Skip to content

Commit 6ccf5b5

Browse files
committed
Fixed Hedley usage
1 parent 2f0f17a commit 6ccf5b5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/pipeline/CommonBindings.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack){
132132
;
133133

134134
// CameraBoardSocket enum bindings
135+
136+
// Deprecated
137+
HEDLEY_DIAGNOSTIC_PUSH
138+
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
135139
cameraBoardSocket
136140
.value("AUTO", CameraBoardSocket::AUTO)
137141
.value("CAM_A", CameraBoardSocket::CAM_A)
@@ -143,9 +147,6 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack){
143147
.value("CAM_G", CameraBoardSocket::CAM_G)
144148
.value("CAM_H", CameraBoardSocket::CAM_H)
145149

146-
// Deprecated
147-
HEDLEY_DIAGNOSTIC_PUSH
148-
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
149150
.value("RGB", CameraBoardSocket::RGB, "**Deprecated:** Use CAM_A or address camera by name instead")
150151
.value("LEFT", CameraBoardSocket::LEFT, "**Deprecated:** Use CAM_B or address camera by name instead")
151152
.value("RIGHT", CameraBoardSocket::RIGHT, "**Deprecated:** Use CAM_C or address camera by name instead")
@@ -168,8 +169,8 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack){
168169
PyErr_WarnEx(PyExc_DeprecationWarning, "RIGHT is deprecated, use CAM_C or address camera by name instead.", 1);
169170
return CameraBoardSocket::CAM_C;
170171
})
171-
HEDLEY_DIAGNOSTIC_POP
172172
;
173+
HEDLEY_DIAGNOSTIC_POP
173174

174175
// CameraSensorType enum bindings
175176
cameraSensorType

0 commit comments

Comments
 (0)