Skip to content

Commit

Permalink
Resolve some of the trivial warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
61315 committed Feb 10, 2022
1 parent 5ae0dc8 commit 93aaf63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode
**/build
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ INC_DIRS := $(shell find $(SRC_DIRS) -type d)
INC_FLAGS := $(addprefix -I,$(INC_DIRS))

CPPFLAGS := $(INC_FLAGS) -MMD -MP
CFLAGS := -DSYNTH_LIB_ALONE -g2 -Wall -Wextra -std=c99 -pedantic
CFLAGS := -DSYNTH_LIB_ALONE -g2 -Wall -Wextra -std=c99 -pedantic -Ofast

# -g -Wall -Wextra -Werror -std=c99 -pedantic-errors
# TODO: Try both -Werror and -pedantic-errors after all the chores are done.
Expand Down
2 changes: 1 addition & 1 deletion resynthesizer/glibProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ s_array_free(
#define g_mutex_init(A) pthread_mutex_init(A, NULL); // POSIX additional parameter
#define g_mutex_lock(A) pthread_mutex_lock(A)
#define g_mutex_unlock(A) pthread_mutex_unlock(A)
#endif
#endif
4 changes: 2 additions & 2 deletions resynthesizer/synthesize.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ computeBestFit(
guint * const bestPatchDiff, // OUT
Coordinates * const bestMatchCorpusPoint, // OUT
const guint countNeighbors,
const TNeighbor const neighbors[],
const TNeighbor neighbors[],
tBettermentKind* latestBettermentKind,
const tBettermentKind bettermentKind,
const TPixelelMetricFunc corpusTargetMetric, // array pointers
Expand Down Expand Up @@ -586,7 +586,7 @@ synthesize(
Match patches at random source points from the corpus.
In later passes, many will be earlyouts.
*/
gint j;
guint j;
for(j=0; j<parameters->maxProbeCount; j++)
{
isPerfectMatch = computeBestFit(randomCorpusPoint(corpusPoints, prng),
Expand Down

0 comments on commit 93aaf63

Please sign in to comment.