You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sc...@apache.org on 2018/03/21 09:57:48 UTC
[trafficserver] branch quic-latest updated: QUIC: Fix complier error
This is an automated email from the ASF dual-hosted git repository.
scw00 pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push:
new 63bb874 QUIC: Fix complier error
63bb874 is described below
commit 63bb874a887c99340951111302f2d1db6ef60d1f
Author: scw00 <sc...@apache.org>
AuthorDate: Wed Mar 21 17:06:38 2018 +0800
QUIC: Fix complier error
---
proxy/hq/HQFrame.cc | 2 +-
proxy/hq/HQTypes.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/proxy/hq/HQFrame.cc b/proxy/hq/HQFrame.cc
index e92a7c1..f34ac78 100644
--- a/proxy/hq/HQFrame.cc
+++ b/proxy/hq/HQFrame.cc
@@ -251,7 +251,7 @@ HQFrameFactory::create(const uint8_t *buf, size_t len)
return HQFrameUPtr(frame, &HQFrameDeleter::delete_data_frame);
default:
// Unknown frame
- Debug("hq_frame_factory", "Unknown frame type %hhx", type);
+ Debug("hq_frame_factory", "Unknown frame type %hhx", static_cast<uint8_t>(type));
frame = hqFrameAllocator.alloc();
new (frame) HQFrame(buf, len);
return HQFrameUPtr(frame, &HQFrameDeleter::delete_frame);
diff --git a/proxy/hq/HQTypes.h b/proxy/hq/HQTypes.h
index 3676d22..5a94007 100644
--- a/proxy/hq/HQTypes.h
+++ b/proxy/hq/HQTypes.h
@@ -23,6 +23,10 @@
#pragma once
+#include "ts/ink_platform.h"
+
+#include <memory>
+
// Update HQFrame::type(const uint8_t *) too when you modify this list
enum class HQFrameType : uint8_t {
DATA = 0x00,
--
To stop receiving notification emails like this one, please contact
scw00@apache.org.