Hi, I am getting the following warnings during make: (openSUSE Leap 15.0)
---------- ==>Entering directory /tmp/download/bacula/bacula/src/qt-console mainwin.cpp: In member function ‘void MainWin::setPreferences()’: mainwin.cpp:835:52: warning: enum constant in boolean context [-Wint-in-bool-context] prefs.radioConvertOff->setChecked(Qt::Checked); ^ mainwin.cpp:838:52: warning: enum constant in boolean context [-Wint-in-bool-context] prefs.radioConvertIEC->setChecked(Qt::Checked); ^ mainwin.cpp:841:57: warning: enum constant in boolean context [-Wint-in-bool-context] prefs.radioConvertStandard->setChecked(Qt::Checked); ^ /bin/sh: line 0: test: too many arguments ---------- My process of building Bacula is: ---------- cd /tmp/download rm -rf * git clone http://git.bacula.org/bacula.git cd bacula/bacula CFLAGS="-O2 -pipe -march=native" \ CXXFLAGS="${CFLAGS}" \ ./configure \ --quiet \ --prefix=/opt/bacula \ --datarootdir=/opt/bacula/share \ --mandir=/opt/bacula/share/man \ --enable-smartalloc \ --enable-bat \ --enable-largefile \ --with-mysql \ --with-dir-user=bacula \ --with-dir-group=bacula \ --with-sd-user=bacula \ --with-sd-group=bacula \ --with-fd-user=root \ --with-fd-group=bacula \ --with-systemd=/usr/lib/systemd/system \ --with-working-dir=/var/spool/bacula \ --with-subsys-dir=/var/run/lock/subsys \ --with-pid-dir=/var/run/bacula \ --with-logdir=/var/log/bacula make --jobs=$(nproc) --quiet ---------- When reporting this as a bug (#2400) I was told: > I don't get this problem. Either it is a compiler > bug or you are using the wrong version of Qt. My compiler and Qt versions are: ---------- # rpm -q gcc-c++ libqt4-devel libQt5Gui-devel gcc-c++-7-lp150.1.50.x86_64 libqt4-devel-4.8.7-lp150.7.5.x86_64 libQt5Gui-devel-5.9.4-lp150.4.8.x86_64 ---------- Can anyone please explain why am I getting these warnings, what is the effect of them on the final build and hopefully - how to get rid of them (considering it was not confirmed as a bug)? -- George ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users