Skip to content

Commit 9435cdc

Browse files
authored
fix One Definition Rule violations (#1242)
>xiphos-4.3.2/src/main/parallel_view.cc:86:15: >error: ‘no_content’ violates the C++ One Definition Rule [-Werror=odr] > 86 | extern gchar *no_content; > | ^ >xiphos-4.3.2/src/main/display.cc:88:14: note: ‘no_content’ was previously declared here > 88 | const gchar *no_content = > | ^ Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
1 parent a61cd42 commit 9435cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/parallel_view.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ SWBuf unknown_parallel = _("Unknown parallel module: ");
8383
*/
8484

8585
BackEnd *backend_p;
86-
extern gchar *no_content;
86+
extern const gchar *no_content;
8787

8888
static const gchar *tf2of(int true_false)
8989
{

0 commit comments

Comments
 (0)