]> sigrok.org Git - libsigrok.git/commit
python: Silence some warnings via -Wno-uninitialized.
authorUwe Hermann <redacted>
Sat, 22 Nov 2014 21:06:02 +0000 (22:06 +0100)
committerUwe Hermann <redacted>
Sat, 22 Nov 2014 21:06:02 +0000 (22:06 +0100)
commit5fcc5909cc5f870e581fd367fd7b86b58c58e7c6
treedfe8d41acc8729bc7940a303123f3ad298a60cbb
parent47af616fd787179bd10e29147dbabd28d09aea8c
python: Silence some warnings via -Wno-uninitialized.

Silence some warnings when building the Python bindings:

  sigrok/core/classes_wrap.cpp: In function ‘PyObject* _wrap_new_OutputFormatMap(PyObject*, PyObject*)’:
  sigrok/core/classes_wrap.cpp:5232:4: warning: ‘argv[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
      ^
  sigrok/core/classes_wrap.cpp:14383:13: note: ‘argv[0]’ was declared here
     PyObject *argv[2];
               ^
  sigrok/core/classes_wrap.cpp: In function ‘PyObject* _wrap_new_ChannelGroupMap(PyObject*, PyObject*)’:
  sigrok/core/classes_wrap.cpp:5232:4: warning: ‘argv[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
      ^
  sigrok/core/classes_wrap.cpp:23356:13: note: ‘argv[0]’ was declared here
     PyObject *argv[2];
               ^

We add -Wno-uninitialized since the warnings are harmless and we really
don't care about them in the generated classes_wrap.cpp.

This fixes parts of #417.
bindings/python/setup.py