summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-03 16:31:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-16 18:42:57 +0100
commit270e41adb0c7a5f3e25e0ea25933de0d5c32ef9c (patch)
treed56df4efd8e9345cf7f213e6149b9a71a49da458 /soltools
parent26caf1bc59c81704f11225e3e431e412deb8c475 (diff)
loplugin:buriedassign in sd..writerfilter
Change-Id: I954c12d9e1c493be6ac8c7b15076077b5bff5b74 Reviewed-on: https://gerrit.libreoffice.org/62811 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'soltools')
-rw-r--r--soltools/mkdepend/parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
index 94533a49f6ce..7d73aae9b068 100644
--- a/soltools/mkdepend/parse.c
+++ b/soltools/mkdepend/parse.c
@@ -47,7 +47,8 @@ int find_includes(struct filepointer *filep, struct inclist *file, struct inclis
boolean recfailOK;
while ((line = get_line(filep))) {
- switch(type = deftype(line, filep, file, TRUE, symbols)) {
+ type = deftype(line, filep, file, TRUE, symbols);
+ switch(type) {
case IF:
doif:
type = find_includes(filep, file,
@@ -171,7 +172,8 @@ int gobble(struct filepointer *filep,
int type;
while ((line = get_line(filep))) {
- switch(type = deftype(line, filep, file, FALSE, symbols)) {
+ type = deftype(line, filep, file, FALSE, symbols);
+ switch(type) {
case IF:
case IFFALSE:
case IFGUESSFALSE: