Yuta HIGUCHI | a7ec073 | 2014-03-10 16:01:06 -0700 | [diff] [blame] | 1 | diff --git a/GNUmakefile b/GNUmakefile |
Yuta HIGUCHI | 39d0427 | 2014-03-13 20:50:47 -0700 | [diff] [blame] | 2 | index e4c9a07..8548901 100644 |
Yuta HIGUCHI | a7ec073 | 2014-03-10 16:01:06 -0700 | [diff] [blame] | 3 | --- 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 HIGUCHI | 39d0427 | 2014-03-13 20:50:47 -0700 | [diff] [blame] | 16 | @@ -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 HIGUCHI | a7ec073 | 2014-03-10 16:01:06 -0700 | [diff] [blame] | 31 | diff --git a/src/MasterService.cc b/src/MasterService.cc |
| 32 | index 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 | } |