LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-28-2018, 07:44 AM   #1
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
gcc-8.1.1 spewing warnings with gtk+2 and gtk+3


Compiling code against gtk+2 or gtk+3 causes gcc-8.1.1 to spew warnings about the use of unnecessary parentheses, because it now adopts the -Wparentheses flag by default.

gtk+-3.23.0 has modified the three affected header files to deal with this. It is a pain to compile any gtk+-using program on slackware by having to set CFLAGS/CXXFLAGS to pass the -Wno-parentheses option, and I wonder if the slackware could apply the attached patches to avoid this?

I have found the affected headers by grepping and I think I have picked up everything (errors and omissions excepted). The fix relies on the size of an object pointer being the same as the size of a function pointer, which is true of any POSIX system (ie slackware) and windows, and presumably of any OS which can run GTK+ given that gtk+-3.23.0 is not supposed to break GTK+3 ABI and does the same.
Attached Files
File Type: txt gtk+-2.24.32-parentheses.txt (1.8 KB, 23 views)
File Type: txt gtk+-3.22.30-parentheses.txt (1.6 KB, 20 views)
 
Old 06-28-2018, 02:41 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,512

Rep: Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478Reputation: 8478
I built several GTK+ 2 and 3 apps here and did not notice warnings related to -Wparentheses. I also looked at GTK+ packages in other distributions shipping gcc8 and did not find that they'd patched their headers.

I think that unless it's causing build failures, the place to request fixes for gcc8 warnings is upstream, not here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64 current gtk+2 /etc/profile.d/gtk+.sh and .csh have uid 3356 aaazen Slackware 2 04-27-2015 09:13 AM
[SOLVED] Python/Gtk3: dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.OK) RockDoctor Programming 2 08-12-2014 07:37 AM
Inhibit GTK verbose messages when running GTK/Gnome applications from terminal d1s4st3r Linux - Software 1 11-10-2009 10:33 PM
GTK Warnings installing Crossover Office Meowatilla Linux - Newbie 6 11-26-2004 12:48 PM
Gtk-Warnings, and multiple application crashes nullcreation Arch 1 10-19-2003 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration