Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ set(CXX_FLAGS
-fPIC
-fno-strict-aliasing
-std=c++11
-Wno-unused-local-typedef
-Wno-expansion-to-defined
# -finline-limit=1000
# -Wextra
# -pedantic
Expand Down
2 changes: 1 addition & 1 deletion include/DefaultMQProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ROCKETMQCLIENT_API DefaultMQProducer : public MQProducer {
int m_sendMsgTimeout;
int m_compressMsgBodyOverHowmuch;
int m_maxMessageSize; //<! default:128K;
bool m_retryAnotherBrokerWhenNotStoreOK;
//bool m_retryAnotherBrokerWhenNotStoreOK;
int m_compressLevel;
int m_retryTimes;
};
Expand Down
2 changes: 1 addition & 1 deletion src/common/sync_http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/
#ifndef ROCKETMQ_CLIENT4CPP__SYNC_HTTP_CLIENT_H_
#define ROCKETMQ_CLIENT4CPP_SYNC_HTTP_CLIENT_H_
#define ROCKETMQ_CLIENT4CPP__SYNC_HTTP_CLIENT_H_

#include <string>

Expand Down
3 changes: 2 additions & 1 deletion src/consumer/DefaultMQPullConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ DefaultMQPullConsumer::~DefaultMQPullConsumer() {
void DefaultMQPullConsumer::start() {
#ifndef WIN32
/* Ignore the SIGPIPE */
struct sigaction sa = {0};
struct sigaction sa;
memset(&sa,0, sizeof(struct sigaction));
sa.sa_handler = SIG_IGN;
sa.sa_flags = 0;
sigaction(SIGPIPE, &sa, 0);
Expand Down
Loading