forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially revert changes of list data types (fix compiler warnings)
Changing from class to struct causes clang compiler warnings like this one: In file included from ../../../src/api/baseapi.cpp:63: ../../../include/tesseract/osdetect.h:29:1: warning: class 'BLOB_CHOICE_LIST' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags] class BLOB_CHOICE_LIST; ^ ../../../src/ccstruct/ratngs.h:228:1: note: previous use is here ELISTIZEH(BLOB_CHOICE) ^ ../../../src/ccutil/elst.h:804:10: note: expanded from macro 'ELISTIZEH' struct CLASSNAME##_LIST : X_LIST<ELIST, ELIST_ITERATOR, CLASSNAME> { \ ^ <scratch space>:458:1: note: expanded from here BLOB_CHOICE_LIST ^ ../../../include/tesseract/osdetect.h:29:1: note: did you mean struct here? class BLOB_CHOICE_LIST; ^~~~~ As it is not possible to change the API header tesseract/osdetect.h, some of the changes from class to struct had to be reverted. Fixes: 968d653 ("Shorten macros") Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information
Showing
4 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters