• R/O
  • SSH
  • HTTPS

beego: Commit


Commit MetaInfo

Revision383 (tree)
Time2012-12-11 16:55:09
Authorsatofumi

Log Message

fix compile error

Change Summary

Incremental Difference

--- connection/TcpipAccept.h (revision 382)
+++ connection/TcpipAccept.h (revision 383)
@@ -11,7 +11,9 @@
1111 */
1212
1313 #include <memory>
14+#include <cstddef>
1415
16+
1517 namespace beego {
1618 class TcpipCtrl;
1719 class SocketSet;
--- connection/SerialCtrl_lin.cpp (revision 382)
+++ connection/SerialCtrl_lin.cpp (revision 383)
@@ -11,11 +11,13 @@
1111
1212 #include "SerialCtrl.h"
1313 #include "RingBuffer.h"
14+#include <unistd.h>
1415 //#include <sys/poll.h>
1516 #include <termios.h>
1617 #include <fcntl.h>
1718 #include <errno.h>
1819 #include <cstring>
20+#include <cstdio>
1921
2022 using namespace beego;
2123
--- tools/sh2writer/SFormatHandler.h (revision 382)
+++ tools/sh2writer/SFormatHandler.h (revision 383)
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include <memory>
14+#include <cstddef>
1415
1516
1617 namespace beego {
--- rangesCtrl/ConvertToGrid.h (revision 382)
+++ rangesCtrl/ConvertToGrid.h (revision 383)
@@ -14,6 +14,7 @@
1414
1515 #include "GridTypes.h"
1616 #include <vector>
17+#include <cstddef>
1718
1819 namespace beego {
1920 class RangeSensorInterface;
--- rangesCtrl/ScipHandler.cpp (revision 382)
+++ rangesCtrl/ScipHandler.cpp (revision 383)
@@ -17,6 +17,7 @@
1717 #include "Delay.h"
1818 #include <cstring>
1919 #include <cstdlib>
20+#include <cstdio>
2021
2122 //#include "ConnectionLogger.h"
2223
@@ -778,6 +779,7 @@
778779
779780 bool laser_state = pimpl->laser_on;
780781 int reply = pimpl->sendMessage("TM0", pImpl::Timeout);
782+ (void)reply;
781783 pimpl->laser_on = false;
782784
783785 long last_timestamp = 0;
@@ -787,10 +789,11 @@
787789 if (1) {
788790 char buffer[pImpl::LineLength];
789791
792+#if 0
790793 int line_length = pimpl->readLine(buffer);
791-
792794 line_length = pimpl->readLine(buffer);
793795 line_length = pimpl->readLine(buffer);
796+#endif
794797 last_timestamp = pimpl->decode(buffer, 4);
795798 pimpl->readLine(buffer);
796799 }
--- coordinateCtrl/CoordinateCtrl.cpp (revision 382)
+++ coordinateCtrl/CoordinateCtrl.cpp (revision 383)
@@ -10,6 +10,7 @@
1010 #include "CoordinateCtrl.h"
1111 #include "MathUtils.h"
1212 #include <set>
13+#include <cstddef>
1314
1415 using namespace beego;
1516
--- pathCtrl/FollowLines.h (revision 382)
+++ pathCtrl/FollowLines.h (revision 383)
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include "GridTypes.h"
14+#include <cstddef>
1415 #include <memory>
1516 #include <vector>
1617
--- monitor/mUrgCtrl.cpp (revision 382)
+++ monitor/mUrgCtrl.cpp (revision 383)
@@ -172,9 +172,9 @@
172172
173173 bool loadSensorParams(SensorParameter* parameter) {
174174
175- size_t ticks;
175+ size_t ticks = 0;
176176 fd << ticks;
177- bool ret;
177+ bool ret = false;
178178 fd << ret;
179179 if (parameter) {
180180 char ch;
--- monitor/mRunCtrl.h (revision 382)
+++ monitor/mRunCtrl.h (revision 383)
@@ -10,11 +10,12 @@
1010 $Id$
1111 */
1212
13-#include <memory>
1413 #include "RunCtrlInterface.h"
1514 #include "FollowLineInterface.h"
1615 #include "GetPositionInterface.h"
1716 #include "DirectWheelCtrlInterface.h"
17+#include <memory>
18+#include <cstddef>
1819
1920
2021 namespace beego {
--- monitor/MonitorBase.cpp (revision 382)
+++ monitor/MonitorBase.cpp (revision 383)
@@ -118,7 +118,7 @@
118118
119119 // baseName の設定
120120 char buffer[13];
121- sprintf(buffer, "%d", id);
121+ sprintf(buffer, "%ld", id);
122122 baseName = std::string(tag) + "_" + buffer;
123123 }
124124
--- common/StandardInput.h (revision 382)
+++ common/StandardInput.h (revision 383)
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include <memory>
14+#include <cstddef>
1415
1516
1617 namespace beego {
--- common/ThreadCreator.h (revision 382)
+++ common/ThreadCreator.h (revision 383)
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include <memory>
14+#include <cstddef>
1415
1516
1617 namespace beego {
--- common/RingBuffer.h (revision 382)
+++ common/RingBuffer.h (revision 383)
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include <vector>
14+#include <cstring>
1415
1516
1617 namespace beego {
--- common/CycleTimer.h (revision 382)
+++ common/CycleTimer.h (revision 383)
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include <memory>
14+#include <cstddef>
1415
1516
1617 namespace beego {
--- runCtrl/RunCtrl.h (revision 382)
+++ runCtrl/RunCtrl.h (revision 383)
@@ -16,11 +16,12 @@
1616 $Id$
1717 */
1818
19-#include <memory>
2019 #include "RunCtrlInterface.h"
2120 #include "FollowLineInterface.h"
2221 #include "GetPositionInterface.h"
2322 #include "DirectWheelCtrlInterface.h"
23+#include <memory>
24+#include <cstddef>
2425
2526
2627 namespace beego {
--- runCtrl/TransmitCtrl.h (revision 382)
+++ runCtrl/TransmitCtrl.h (revision 383)
@@ -13,6 +13,7 @@
1313 #include "TransmitPacket.h"
1414 #include <memory>
1515 #include <vector>
16+#include <cstddef>
1617
1718 namespace beego {
1819 class ConnectionInterface;
Show on old repository browser