Mailinglist Archive: yast-commit (436 mails)

< Previous Next >
[yast-commit] [yast/yast-core] 43d421: Preserve old behavior: declare ~Rep() as throwing.
Branch: refs/heads/throw-terminate
Home: https://github.com/yast/yast-core
Commit: 43d4217c5fd68a7f312dcbd93768b44050bf47ce

https://github.com/yast/yast-core/commit/43d4217c5fd68a7f312dcbd93768b44050bf47ce
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-10-09 (Mon, 09 Oct 2017)

Changed paths:
M liby2/src/Y2Namespace.cc
M liby2/src/include/y2/Y2Namespace.h
M liby2util-r/src/include/y2util/Rep.h

Log Message:
-----------
Preserve old behavior: declare ~Rep() as throwing.

[ 69s] In file included from Rep.cc:24:0:
[ 69s] ./include/y2util/Rep.h: In destructor 'virtual Rep::~Rep()':
[ 69s] ./include/y2util/Rep.h:84:50: warning: throw will always call
terminate() [-Wterminate]
[ 69s] virtual ~Rep() { if ( _counter ) throw( this ); }
[ 69s] ^
[ 69s] ./include/y2util/Rep.h:84:50: note: in C++11 destructors default to
noexcept


Commit: 050d18b153381773cf9bc32c11b46bce412eac99

https://github.com/yast/yast-core/commit/050d18b153381773cf9bc32c11b46bce412eac99
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-10-09 (Mon, 09 Oct 2017)

Changed paths:
M libycp/src/include/ycp/Bytecode.h
M libycp/src/include/ycp/Xmlcode.h

Log Message:
-----------
Avoid warnings about "major" and "minor" macros.

In file included from Point.cc:47:0:
./include/ycp/Bytecode.h:50:13: warning: In the GNU C Library, "major" is
defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>.
int major () const { return m_major; }
^~~~~~~~~~~~~~~~~~~~~~~~~~~


Commit: ea096953343f801eefa0bb35c85a0b6eb9feac7f

https://github.com/yast/yast-core/commit/ea096953343f801eefa0bb35c85a0b6eb9feac7f
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-10-09 (Mon, 09 Oct 2017)

Changed paths:
M libycp/src/YExpression.cc

Log Message:
-----------
Use a bit operator for bit masking.

In YEBinary::type ()
[ 57s] YExpression.cc:1454:26: error: enum constant in boolean context
[-Werror=int-in-bool-context]
[ 57s] if (m_decl->flags && DECL_FLEX)
[ 57s] ^~~~~~~~~

Fortunately, this bug never triggered, because all existing YEBinary
instances either had no m_decl->flags, or they were exactly equal to
DECL_FLEX (for list<T> + list<T>, and for list<T> + T).


Commit: 9f8956b5a7ca36c97f66c4c12a98378d1c5df335

https://github.com/yast/yast-core/commit/9f8956b5a7ca36c97f66c4c12a98378d1c5df335
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-10-10 (Tue, 10 Oct 2017)

Changed paths:
M package/yast2-core.changes
M package/yast2-core.spec

Log Message:
-----------
version + changelog


Compare: https://github.com/yast/yast-core/compare/43d4217c5fd6^...9f8956b5a7ca
< Previous Next >
This Thread