Mailinglist Archive: yast-commit (436 mails)

< Previous Next >
[yast-commit] [yast/yast-core] 26ed5a: Avoid warnings about "major" and "minor" macros.
Branch: refs/heads/throw-terminate
Home: https://github.com/yast/yast-core
Commit: 26ed5ab8205de4066afe83940135ac0d009a5c01

https://github.com/yast/yast-core/commit/26ed5ab8205de4066afe83940135ac0d009a5c01
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-10-10 (Tue, 10 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: 1d633d0128c6572f3cf0d1a0d62f3e1f07797b31

https://github.com/yast/yast-core/commit/1d633d0128c6572f3cf0d1a0d62f3e1f07797b31
Author: Martin Vidner <mvidner@xxxxxxx>
Date: 2017-10-10 (Tue, 10 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: d35176fa7ba23ea64c5a20d8a291276cf2a2abc6

https://github.com/yast/yast-core/commit/d35176fa7ba23ea64c5a20d8a291276cf2a2abc6
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/9f8956b5a7ca...d35176fa7ba2
< Previous Next >
This Thread
  • No further messages