How To: Suppress the Deprecated Declarations Warning (GCC Compiler)#
Issue#
You get a lot of deprecated declarations warnings when you use Basler's legacy camera classes.
Reason#
Deprecated declarations warnings advise you only that the affected camera parameter will get a new name in the future due to the release of a new SFNC version (Standard Features Naming Convention).
For example, AutoFunctionROIWidth
replaced AutoFunctionAOIWidth
.
Solution#
Check if the latest firmware is installed on your cameras. If the latest firmware is installed, make sure to use only the new camera parameter names in your code.
If you want to temporarily disable deprecation warnings, add the following line in your cpp file before you include any pylon related headers.