blob: a1b26688494352fdda72eafa78f048b86c8ad9f8 [file] [log] [blame]
Yuta HIGUCHIa7ec0732014-03-10 16:01:06 -07001diff --git a/GNUmakefile b/GNUmakefile
Yuta HIGUCHI39d04272014-03-13 20:50:47 -07002index e4c9a07..8548901 100644
Yuta HIGUCHIa7ec0732014-03-10 16:01:06 -07003--- a/GNUmakefile
4+++ b/GNUmakefile
5@@ -23,8 +23,8 @@ OBJDIR := obj$(OBJSUFFIX)
6
7 TOP := $(shell echo $${PWD-`pwd`})
8 GTEST_DIR ?= $(TOP)/gtest
9-ZOOKEEPER_LIB := /usr/local/lib/libzookeeper_mt.a
10-ZOOKEEPER_DIR := /usr/local/zookeeper-3.4.5
11+ZOOKEEPER_LIB ?= /usr/local/lib/libzookeeper_mt.a
12+ZOOKEEPER_DIR ?= /usr/local/zookeeper-3.4.5
13
14 ifeq ($(DEBUG),yes)
15 BASECFLAGS := -g
Yuta HIGUCHI39d04272014-03-13 20:50:47 -070016@@ -103,12 +103,12 @@ endif
17 CFLAGS_BASE := $(COMFLAGS) -std=gnu0x $(INCLUDES)
18 CFLAGS_SILENT := $(CFLAGS_BASE)
19 CFLAGS_NOWERROR := $(CFLAGS_BASE) $(CWARNS)
20-CFLAGS := $(CFLAGS_BASE) -Werror $(CWARNS)
21+CFLAGS := $(CFLAGS_BASE) $(CWARNS)
22
23 CXXFLAGS_BASE := $(COMFLAGS) -std=c++0x $(INCLUDES)
24 CXXFLAGS_SILENT := $(CXXFLAGS_BASE) $(EXTRACXXFLAGS)
25 CXXFLAGS_NOWERROR := $(CXXFLAGS_BASE) $(CXXWARNS) $(EXTRACXXFLAGS)
26-CXXFLAGS := $(CXXFLAGS_BASE) -Werror $(CXXWARNS) $(EXTRACXXFLAGS)
27+CXXFLAGS := $(CXXFLAGS_BASE) $(CXXWARNS) $(EXTRACXXFLAGS)
28
29 ifeq ($(COMPILER),intel)
30 CXXFLAGS = $(CXXFLAGS_BASE) $(CXXWARNS)
Yuta HIGUCHIa7ec0732014-03-10 16:01:06 -070031diff --git a/src/MasterService.cc b/src/MasterService.cc
32index 93cfb5d..02876c7 100644
33--- a/src/MasterService.cc
34+++ b/src/MasterService.cc
35@@ -613,7 +613,7 @@ MasterService::multiWrite(const WireFormat::MultiOp::Request* reqHdr,
36 reqOffset, currentReq->valueLength);
37 reqOffset += currentReq->valueLength;
38
39- if (stringKey == NULL || value == NULL) {
40+ if (stringKey == NULL) {
41 respHdr->common.status = STATUS_REQUEST_FORMAT_ERROR;
42 break;
43 }