View Single Post
Old 01-14-2025, 08:02 AM   #20
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 277
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Deprecated stuff in 1.4.0

Got 1.4.0 installed on W10 and MacBook ok.

Built from source on Linux (UBStudio 24.04.1), OK but during the 'sudo make install' part, the slow and steady flow of progress lines in the terminal was suddenly interrupted by a rapid flow of messages indicating that there was some deprecated stuff.

It all concerns the source file SpellCheck.cpp and Hunspell. The listing is here :
Code:
igil.dir/Misc/SettingsStore.cpp.o
[ 79%] Building CXX object src/CMakeFiles/sigil.dir/Misc/SpellCheck.cpp.o
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp: In member function ‘bool SpellCheck::spell(const QString&)’:
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:212:34: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
  212 |     bool res = hdic.handle->spell(ba.constData()) != 0;
      |                ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:23:
/usr/include/hunspell/hunspell.hxx:132:20: note: declared here
  132 |   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
      |                    ^~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp: In member function ‘bool SpellCheck::spellPS(const QString&)’:
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:227:39: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
  227 |     bool res = m_primary.handle->spell(pba.constData()) !=0;
      |                ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:132:20: note: declared here
  132 |   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
      |                    ^~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:231:37: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
  231 |     return m_secondary.handle->spell(sba.constData()) != 0;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:132:20: note: declared here
  132 |   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
      |                    ^~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp: In member function ‘QStringList SpellCheck::suggest(const QString&)’:
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:248:37: warning: ‘int Hunspell::suggest(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
  248 |     int count = hdic.handle->suggest(&suggestedWords, wba.constData());
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:142:20: note: declared here
  142 |   H_DEPRECATED int suggest(char*** slst, const char* word);
      |                    ^~~~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:256:27: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
  256 |     hdic.handle->free_list(&suggestedWords, count);
      |     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:156:21: note: declared here
  156 |   H_DEPRECATED void free_list(char*** slst, int n);
      |                     ^~~~~~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp: In member function ‘QStringList SpellCheck::suggestPS(const QString&)’:
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:270:42: warning: ‘int Hunspell::suggest(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
  270 |     int count = m_primary.handle->suggest(&suggestedWords, pba.constData());
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:142:20: note: declared here
  142 |   H_DEPRECATED int suggest(char*** slst, const char* word);
      |                    ^~~~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:280:40: warning: ‘int Hunspell::suggest(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
  280 |     count = m_secondary.handle->suggest(&suggestedWords2, sba.constData());
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:142:20: note: declared here
  142 |   H_DEPRECATED int suggest(char*** slst, const char* word);
      |                    ^~~~~~~
/home/pnj/Downloads/Sigil-2.4.0-download/sigil-src/src/Misc/SpellCheck.cpp:288:34: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
  288 |     m_secondary.handle->free_list(&suggestedWords2, count);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/hunspell/hunspell.hxx:156:21: note: declared here
  156 |   H_DEPRECATED void free_list(char*** slst, int n);
      |                     ^~~~~~~~~
It doesn't affect Sigil's normal workings but might interest Kevin and DiapDealer. Could it be due to outdated stuff in my distro?

Last edited by philja; 01-14-2025 at 08:15 AM.
philja is online now   Reply With Quote