Change in osmo-pcu[master]: tests: rlcmac: Fix C vs C++ linkage of extern symbol

laforge gerrit-no-reply at lists.osmocom.org
Fri Mar 12 07:40:15 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/23287 )

Change subject: tests: rlcmac: Fix C vs C++ linkage of extern symbol
......................................................................

tests: rlcmac: Fix C vs C++ linkage of extern symbol

RLCMACTest.cpp:31:30: error: conflicting declaration of ‘const log_info gprs_log_info’ with ‘C’ linkage
   31 | extern const struct log_info gprs_log_info;
gprs_debug.h:54:30: note: previous declaration with ‘C++’ linkag

Change-Id: I5922950dd0057bf7eb8578e2144f127082323fc6
---
M tests/rlcmac/RLCMACTest.cpp
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/tests/rlcmac/RLCMACTest.cpp b/tests/rlcmac/RLCMACTest.cpp
index 598d11a..4bde5bf 100644
--- a/tests/rlcmac/RLCMACTest.cpp
+++ b/tests/rlcmac/RLCMACTest.cpp
@@ -28,7 +28,6 @@
 #include "decoding.h"
 
 extern "C" {
-extern const struct log_info gprs_log_info;
 #include "pcu_vty.h"
 #include <osmocom/vty/telnet_interface.h>
 #include <osmocom/vty/logging.h>
@@ -41,6 +40,8 @@
 }
 using namespace std;
 
+#include "gprs_debug.h"
+
 void *tall_pcu_ctx;
 
 void printSizeofRLCMAC()

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/23287
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I5922950dd0057bf7eb8578e2144f127082323fc6
Gerrit-Change-Number: 23287
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210312/c09beb91/attachment.htm>


More information about the gerrit-log mailing list