<p><a href="https://gerrit.osmocom.org/9636">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/9636/1/src/osmo-msc/msc_main.c">File src/osmo-msc/msc_main.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/9636/1/src/osmo-msc/msc_main.c@74">Patch Set #1, Line 74:</a> <code style="font-family:monospace,monospace">const char * const</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">maybe it's the const * const which is creating the compiler error?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Nope, If I use "static const char *osmomsc_copyright" here, I get in gcc 8.1.0:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">/home/pespin/dev/sysmocom/git/osmo-msc/src/osmo-msc/msc_main.c:319:15: error: initializer element is not constant<br>  .copyright = osmomsc_copyright,<br>               ^~~~~~~~~~~~~~~~~<br>/home/pespin/dev/sysmocom/git/osmo-msc/src/osmo-msc/msc_main.c:319:15: note: (near initialization for ‘msc_vty_info.copyright’)</pre><p style="white-space: pre-wrap; word-wrap: break-word;"><br>So I guess it's a bug in older gcc versions and that's why we set it in main() instead.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Another solution I think I saw in osmo-bsc, is to set the text directly in "static struct vty_app_info msc_vty_info = {":<br>...<br>.copyright = "<br>HERE THE ENTIRE COPYRIGHT TEXT<br>",<br>...</p><p style="white-space: pre-wrap; word-wrap: break-word;">That works.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/9636">change 9636</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9636"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I432990624e7c375e29ef57998691327bffc89227 </div>
<div style="display:none"> Gerrit-Change-Number: 9636 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 15 Jun 2018 15:00:14 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>