Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings from c++ #14

Open
sneumann opened this issue Apr 1, 2019 · 0 comments
Open

Warnings from c++ #14

sneumann opened this issue Apr 1, 2019 · 0 comments

Comments

@sneumann
Copy link
Owner

sneumann commented Apr 1, 2019

Some C++ warnings thrown because the code was written a long time ago,
and C++ has progressed:

* checking whether package ‘Rdisop’ can be installed ... WARNING
Found the following significant warnings:
  ./imslib/src/ims/base/parser/alphabetparser.h:37:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/alphabetparser.h:58:98: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/alphabet.h:113:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/alphabet.h:133:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/alphabet.h:220:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/alphabet.h:234:4: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/abstractmoleculesequenceparser.h:23:7: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/composedelement.h:95:4: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/composedelement.h:205:4: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  disop.cpp:825:65: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  disop.cpp:827:86: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  disop.cpp:829:47: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  disop.cpp:831:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  disop.cpp:832:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  disop.cpp:833:65: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  ./imslib/src/ims/base/parser/moleculesequenceparser.h:17:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/moleculesequenceparser.h:20:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/moleculesequenceparser.h:27:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/standardmoleculesequenceparser.h:20:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/standardmoleculesequenceparser.h:23:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/standardmoleculesequenceparser.h:30:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/composedelement.cpp:24:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/composedelement.cpp:117:4: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/alphabet.cpp:26:11: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/alphabet.cpp:39:12: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/alphabet.cpp:84:47: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/alphabet.cpp:90:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/distributedalphabet.h:103:46: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/distributedalphabet.h:110:15: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/distributedalphabet.cpp:57:57: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/distributedalphabet.cpp:68:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/massesparser.h:24:39: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/massesparser.h:45:76: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/moleculesequenceparser.cpp:15:19: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/moleculesequenceparser.cpp:20:12: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/moleculesequenceparser.cpp:58:4: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/standardmoleculesequenceparser.cpp:15:19: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/standardmoleculesequenceparser.cpp:20:12: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/standardmoleculesequenceparser.cpp:58:4: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/keggligandcompoundsparser.h:17:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/keggligandcompoundsparser.h:20:10: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/keggligandcompoundsparser.cpp:15:19: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/keggligandcompoundsparser.cpp:20:12: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/moleculeionchargemodificationparser.h:39:70: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/base/parser/moleculeionchargemodificationparser.h:48:45: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/moleculeionchargemodificationparser.cpp:14:37: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/base/parser/moleculeionchargemodificationparser.cpp:29:80: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/calib/matchmatrix.h:53:48: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/calib/matchmatrix.h:55:50: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/calib/matchmatrix.cpp:21:50: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/calib/matchmatrix.cpp:47:52: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  ./imslib/src/ims/characteralphabet.h:18:60: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  imslib/src/ims/characteralphabet.cpp:21:72: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
See ‘/home/biocbuild/bbs-3.9-bioc/meat/Rdisop.Rcheck/00install.out’ for details.
Livia-Rasp added a commit to Livia-Rasp/Rdisop that referenced this issue Apr 2, 2019
Livia-Rasp added a commit to Livia-Rasp/Rdisop that referenced this issue Apr 2, 2019
…cit casting of string to char*, which is forbidden by ISO C++ standard, regarding issue sneumann#14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant