! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Compile Failure: tvm-command-entry.c:83:9: error: cast between incompatible f...
Status:
RESOLVED: INVALID
Product:
Thunar-volman
Component:
General

Comments

Description Öyvind Saether 2020-02-02 22:47:51 CET
make[2]: Leaving directory '/home/oyvinds/src/xfce4/thunar-volman/thunar-volman'
Making all in thunar-volman-settings
make[2]: Entering directory '/home/oyvinds/src/xfce4/thunar-volman/thunar-volman-settings'
  CC       thunar_volman_settings-main.o
  CC       thunar_volman_settings-tvm-command-entry.o
  CC       thunar_volman_settings-tvm-preferences-dialog.o
  CC       thunar_volman_settings-tvm-pango-extensions.o
tvm-command-entry.c: In function ‘tvm_command_entry_get_type’:
tvm-command-entry.c:83:9: error: cast between incompatible function types from ‘void (*)(TvmCommandEntryClass *)’ {aka ‘void (*)(struct _TvmCommandEntryClass *)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
   83 |         (GClassInitFunc) tvm_command_entry_class_init,
      |         ^
tvm-command-entry.c:88:9: error: cast between incompatible function types from ‘void (*)(TvmCommandEntry *)’ {aka ‘void (*)(struct _TvmCommandEntry *)’} to ‘void (*)(GTypeInstance *, void *)’ {aka ‘void (*)(struct _GTypeInstance *, void *)’} [-Werror=cast-function-type]
   88 |         (GInstanceInitFunc) tvm_command_entry_init,
      |         ^
cc1: all warnings being treated as errors
make[2]: *** [Makefile:627: thunar_volman_settings-tvm-command-entry.o] Error 1
make[2]: Leaving directory '/home/oyvinds/src/xfce4/thunar-volman/thunar-volman-settings'
make[1]: *** [Makefile:492: all-recursive] Error 1
make[1]: Leaving directory '/home/oyvinds/src/xfce4/thunar-volman'
make: *** [Makefile:424: all] Error 2
Comment 1 alexxcons editbugs 2020-02-03 09:15:05 CET
You are building master ? Or some different branch ?
Looks like you are building with -Werror, so actually it is a warning (though I dont even get that warning)

I got some other compiler error when doing git fetch & git pull & make ... though after purging the project and doing a fresh git clone, it built fine for me.

gcc version 9.2.1  .. which compiler do you use ?
Comment 2 Öyvind Saether 2020-02-03 09:59:19 CET
It took me a while to realize that --enable-debug=full makes warnings into errors, I simply didn't realize. Will use --enable-debug=yes

Bug #16422

Reported by:
Öyvind Saether
Reported on: 2020-02-02
Last modified on: 2020-02-03

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information