diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-24 10:06:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-24 10:06:49 +0200 |
commit | c192109f72d801464232988acc65ea5d4aa62348 (patch) | |
tree | 9c9cd7a91dd526a81a5e48d4aa7cd73332ddb789 | |
parent | 61c51dbb18260e0e3105237c1178319efcf66a9d (diff) |
samples: Fix warnings
-rw-r--r-- | testsuites/samples/cdtest/main.cc | 4 | ||||
-rw-r--r-- | testsuites/samples/loopback/init.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/samples/cdtest/main.cc b/testsuites/samples/cdtest/main.cc index 7aeb884354..010bc221f0 100644 --- a/testsuites/samples/cdtest/main.cc +++ b/testsuites/samples/cdtest/main.cc @@ -89,6 +89,10 @@ public: check_end_of_test(); }; +#if __cplusplus >= 201103L + AClass& operator=(const AClass&) = default; +#endif + virtual void print() { printf("%s\n", string); }; protected: diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c index d537731bba..5cbbd54620 100644 --- a/testsuites/samples/loopback/init.c +++ b/testsuites/samples/loopback/init.c @@ -100,7 +100,7 @@ static rtems_task workerTask(rtems_task_argument arg) { int s = arg; char msg[80]; - char reply[100]; + char reply[120]; int i; for (;;) { @@ -156,7 +156,7 @@ static rtems_task serverTask(rtems_task_argument arg) else rtems_panic("Can't accept connection: %s", strerror(errno)); else - printf("ACCEPTED:%lX\n", ntohl(farAddr.sin_addr.s_addr)); + printf("ACCEPTED:%" PRIu32 "\n", ntohl(farAddr.sin_addr.s_addr)); spawnTask(workerTask, myPriority, s1); } } |