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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Mar 9 15:30:28 UTC 2021


pespin has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/87/23287/1

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: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210309/13473775/attachment.htm>


More information about the gerrit-log mailing list