Project

General

Profile

Actions

Bug #3140

closed

ftp: compile warnings on gcc-8

Added by Victor Julien about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

CFLAGS="-O3 -g -fno-strict-aliasing -fstack-protector-all -Wshadow"
CC="gcc-8
gcc-8 (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0

  CC       output-json-ftp.o
output-json-ftp.c: In function ‘JsonFTPLogger’:
output-json-ftp.c:129:9: warning: ‘js_respcode_list’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         json_object_set_new(cjs, "completion_code", js_respcode_list);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output-json-ftp.c:74:13: note: ‘js_respcode_list’ was declared here
     json_t *js_respcode_list;
             ^~~~~~~~~~~~~~~~
output-json-ftp.c:128:9: warning: ‘js_resplist’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         json_object_set_new(cjs, "reply", js_resplist);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output-json-ftp.c:73:13: note: ‘js_resplist’ was declared here
     json_t *js_resplist;
             ^~~~~~~~~~~
Actions #1

Updated by Victor Julien about 5 years ago

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Jason Ish
  • Target version changed from 70 to 5.0rc1
Actions #2

Updated by Jason Ish about 5 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF