Skip to content

Commit

Permalink
Merge pull request #2020 from stweil/clang8
Browse files Browse the repository at this point in the history
Fix some compiler warnings from clang-8
  • Loading branch information
zdenop authored Oct 22, 2018
2 parents dba7f45 + 9c07993 commit 55704d2
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/ccmain/tessbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include "mfoutline.h"
#include "tesseractclass.h"

#define EXTERN

/**
* @name tess_segment_pass_n
*
Expand Down
1 change: 0 additions & 1 deletion src/ccmain/tessedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include "matchdefs.h"
#endif

#define VARDIR "configs/" /*variables files */
// config under api
#define API_CONFIG "configs/api_config"

Expand Down
1 change: 0 additions & 1 deletion src/ccstruct/blobbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
struct Pix;

#define PROJECTION_MARGIN 10 //arbitrary
#define EXTERN

ELISTIZE(BLOBNBOX)
ELIST2IZE(TO_ROW)
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/globaloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// Size of thread-id array of pixes to keep in case of crash.
const int kMaxNumThreadPixes = 32768;

Pix* global_crash_pixes[kMaxNumThreadPixes];
static Pix* global_crash_pixes[kMaxNumThreadPixes];

void SavePixForCrash(int resolution, Pix* pix) {
#ifdef __linux__
Expand Down
3 changes: 0 additions & 3 deletions src/ccutil/mainblk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
#include "fileerr.h"
#include "ccutil.h"

#define VARDIR "configs/" /**< variables files */
#define EXTERN

const ERRCODE NO_PATH =
"Warning:explicit path for executable will not be used for configs";
static const ERRCODE USAGE = "Usage";
Expand Down
2 changes: 1 addition & 1 deletion src/ccutil/scanutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static int tvfscanf(FILE* stream, const char *format, va_list ap) {
unsigned length = 0;
while (width--) {
q = fgetc(stream);
if (isascii(q) && isspace(q) || q <= 0) {
if ((isascii(q) && isspace(q)) || (q <= 0)) {
ungetc(q, stream);
break;
}
Expand Down

0 comments on commit 55704d2

Please sign in to comment.