Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
some warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yetkinozturk committed Aug 10, 2014
1 parent e85f97b commit 3ae004e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server.app: server.o pgconnection.o configure.o pgnosqlserver.o
@echo "Linking Objects"
@echo "==============="
@echo ""
$(CC) --std=gnu++11 -o $@ $^ $(LDFLAGS)
$(CC) --std=gnu++11 -Wall -O3 -o $@ $^ $(LDFLAGS)
rm *.o

server.o: connect/pgconnection.cpp config/configure.cpp cmd/pgnosqlcommand.cpp server/pgnosqlserver.cpp server/server.cpp
Expand All @@ -19,7 +19,7 @@ server.o: connect/pgconnection.cpp config/configure.cpp cmd/pgnosqlcommand.cpp s
@echo "Compiling Sources"
@echo "================="
@echo ""
$(CC) --std=gnu++11 -c $(CFLAGS) $^
$(CC) --std=gnu++11 -Wall -O3 -c $(CFLAGS) $^

.PHONY: clean

Expand Down
3 changes: 1 addition & 2 deletions cmd/pgnosqlcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool Command::tokenize() {
return true;
}

bool Command::paramNumCheckOK(short min, short max) {
bool Command::paramNumCheckOK(std::size_t min, std::size_t max) {
return ((tokenList.size() >= min) && (tokenList.size() <= max));
}

Expand Down Expand Up @@ -235,7 +235,6 @@ std::string Command::modholder() {
throw CommandParameterError();
std::string ret;
std::string indexType;
bool firstLevelIndex = true;
boost::to_upper(tokenList[ MAXARGMODHOLDER - 3]);
tokenList[ MAXARGMODHOLDER - 4] = "jsstore_"
+ tokenList[ MAXARGMODHOLDER - 4];
Expand Down
2 changes: 1 addition & 1 deletion cmd/pgnosqlcommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Command
void removeExtraSpaces(std::string &str);
void makeProperJsonQuotes(std::string &str);
bool tokenize();
bool paramNumCheckOK(short min, short max);
bool paramNumCheckOK(std::size_t min, std::size_t max);
bool isFirstLevelCondition(std::string expr);
std::string getPrefix(){ return prefix; }
std::string flushall();
Expand Down

0 comments on commit 3ae004e

Please sign in to comment.