[pkg-d-commits] [ldc] 57/149: Fix C++ warning: ../ddmd/expression.h:1052:7: warning: class 'CommaExp' does not declare any constructor to initialize its non-modifiable members class CommaExp : public BinExp ^ ../ddmd/expression.h:1055:16: note: const member 'isGenerated' will never be initialized const bool isGenerated;

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.2.0
in repository ldc.

commit 7e1c24b02eabf29e732acd3ada82df36c26b49ba
Author: Johan Engelen <jbc.engelen at gmail.com>
Date:   Sun Jan 29 22:58:08 2017 +0100

    Fix C++ warning:
    ../ddmd/expression.h:1052:7: warning: class 'CommaExp' does not declare any constructor to initialize its non-modifiable members
    class CommaExp : public BinExp
          ^
    ../ddmd/expression.h:1055:16: note: const member 'isGenerated' will never be initialized
        const bool isGenerated;
---
 ddmd/expression.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ddmd/expression.h b/ddmd/expression.h
index 0ec7e33..297505f 100644
--- a/ddmd/expression.h
+++ b/ddmd/expression.h
@@ -1052,6 +1052,7 @@ public:
 class CommaExp : public BinExp
 {
 public:
+    CommaExp(Loc loc, Expression *e1, Expression *e2);
     const bool isGenerated;
     bool allowCommaExp;
     Expression *semantic(Scope *sc);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list