]> sigrok.org Git - libsigrok.git/commit
Fix multiple C++ bindings warnings with gcc 8.
authorUwe Hermann <redacted>
Sun, 22 Jul 2018 15:07:26 +0000 (17:07 +0200)
committerUwe Hermann <redacted>
Sun, 22 Jul 2018 15:08:44 +0000 (17:08 +0200)
commit0875f11de44e337397d13af3daf616ec48df6b76
treed17e684cd65ecb7386eac33707e2e6e966f49844
parent19d816c54ad24d93b2af6ba2f0406d6f8df0a3af
Fix multiple C++ bindings warnings with gcc 8.

  bindings/cxx/classes.cpp: In function ‘int sigrok::call_log_callback(void*, int, const char*, __va_list_tag*)’:
  bindings/cxx/classes.cpp:242:17: warning: catching polymorphic type ‘class sigrok::Error’ by value [-Wcatch-value=]
    } catch (Error e) {
                   ^
  In file included from bindings/cxx/classes.cpp:1667:
  bindings/cxx/enums.cpp: In static member function ‘static Glib::VariantBase sigrok::ConfigKey::parse_string(std::__cxx11::string, sr_datatype)’:
  bindings/cxx/enums.cpp:789:13: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]
      } catch (invalid_argument) {
               ^~~~~~~~~~~~~~~~
  bindings/cxx/enums.cpp:804:13: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]
      } catch (invalid_argument) {
               ^~~~~~~~~~~~~~~~
bindings/cxx/ConfigKey_methods.cpp
bindings/cxx/classes.cpp