From: Pavel Sanda Date: Sat, 12 Feb 2011 22:08:32 +0000 (+0000) Subject: Fix gcc 4.6 compilation. X-Git-Tag: 2.0.0~787 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e5677802b244242d3d1ff39dfd57d6c004fa0a5f;p=features.git Fix gcc 4.6 compilation. If no initializer is specified for an object, and the object is of (possibly cv-qualified) non-POD class type (or array thereof), the object shall be default-initialized; if the object is of const-qualified type, the underlying class type shall have a user-declared default constructor. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37603 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetCommandParams.cpp b/src/insets/InsetCommandParams.cpp index d3dccdd406..bb4882874a 100644 --- a/src/insets/InsetCommandParams.cpp +++ b/src/insets/InsetCommandParams.cpp @@ -84,7 +84,7 @@ static ParamInfo const & findInfo(InsetCode code, string const & cmdName) default: LASSERT(false, /**/); } - static const ParamInfo pi; + static ParamInfo pi; return pi; // to silence the warning }