Project

General

Profile

Actions

Bug #8457

closed

libstmf: psStmfProp and psStmfPropVal may be used uninitialized

Added by Toomas Soome about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-07-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error from gcc 6:

../common/store.c: In function 'iPsGetSetStmfProp':
../common/store.c:2397:6: error: 'psStmfProp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  if (scf_pg_get_property(pg, psStmfProp, prop) == -1) {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/store.c:2447:7: error: 'psStmfPropVal' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (scf_value_set_astring(value, psStmfPropVal) == -1) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF