After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777692 - Drop gnome-common dependency
Drop gnome-common dependency
Status: RESOLVED OBSOLETE
Product: sound-juicer
Classification: Applications
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Sound Juicer Maintainers
Sound Juicer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-24 11:30 UTC by Phillip Wood
Modified: 2021-05-17 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove shadow variables (19.69 KB, patch)
2017-01-24 11:30 UTC, Phillip Wood
none Details | Review
Constify string literals (10.75 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Add SJ_BEGIN/END_IGNORE_DISCARDED_QUANTIFIERS (1.10 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Fix -Wdiscarded-quantifiers warnings (2.73 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Fix -Wswitch-default warnings (1.88 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Add SJ_BEGIN/END_IGNORE_SWITCH_ENUM (1.17 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Fix -Wswitch-enum warnings (3.67 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Remove sj-main.h (3.99 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Fix old style function definitions (1.37 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Remove duplicate declarations (1.96 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Do not mix code and declarations (4.76 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Drop gnome-common dependency (3.11 KB, patch)
2017-01-24 11:31 UTC, Phillip Wood
none Details | Review
Remove shadow variables (19.69 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Constify string literals (10.75 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Add SJ_BEGIN/END_IGNORE_DISCARDED_QUANTIFIERS (1.92 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Fix -Wdiscarded-quantifiers warnings (2.73 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Fix -Wswitch-default warnings (1.88 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Add SJ_BEGIN/END_IGNORE_SWITCH_ENUM (1.19 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Fix -Wswitch-enum warnings (3.67 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
committed Details | Review
Silence -Wsometimes-uninitialized (944 bytes, patch)
2017-02-08 11:52 UTC, Phillip Wood
none Details | Review
Fix -Wsign-compare warning (1.81 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
none Details | Review
Fix -Wsuggest-attribute warnings (1.22 KB, patch)
2017-02-08 11:52 UTC, Phillip Wood
none Details | Review
Remove sj-main.h (4.01 KB, patch)
2017-02-08 11:53 UTC, Phillip Wood
committed Details | Review
Fix old style function definitions (1.37 KB, patch)
2017-02-08 11:53 UTC, Phillip Wood
committed Details | Review
Remove duplicate declarations (1.96 KB, patch)
2017-02-08 11:53 UTC, Phillip Wood
committed Details | Review
Do not mix code and declarations (4.76 KB, patch)
2017-02-08 11:53 UTC, Phillip Wood
committed Details | Review
Drop gnome-common dependency (3.12 KB, patch)
2017-02-08 11:53 UTC, Phillip Wood
committed Details | Review

Description Phillip Wood 2017-01-24 11:30:52 UTC
Use AX_COMPILER_FLAGS and friends instead, this requires a number of
warnings to be fixed

https://wiki.gnome.org/Projects/GnomeCommon/Migration
Comment 1 Phillip Wood 2017-01-24 11:30:56 UTC
Created attachment 344110 [details] [review]
Remove shadow variables

Prefix global variables with sj_ to avoid local variables shadowing
them. Found with -Wshadow
Comment 2 Phillip Wood 2017-01-24 11:31:00 UTC
Created attachment 344111 [details] [review]
Constify string literals

Ensure string literals are declared const to prevent warnings from
-Wwrite-strings.
Comment 3 Phillip Wood 2017-01-24 11:31:05 UTC
Created attachment 344112 [details] [review]
Add SJ_BEGIN/END_IGNORE_DISCARDED_QUANTIFIERS

These make it simple to turn -Wdiscarded-quantifiers warnings created by
-Wwrite-strings off.
Comment 4 Phillip Wood 2017-01-24 11:31:10 UTC
Created attachment 344113 [details] [review]
Fix -Wdiscarded-quantifiers warnings

-Wwrite-strings causes a couple of -Wdiscarded-quantifier warnings that
while technically correct are really false positives as the strings are
never modified.
Comment 5 Phillip Wood 2017-01-24 11:31:14 UTC
Created attachment 344114 [details] [review]
Fix -Wswitch-default warnings

Add a default clause to switch statements that are missing one.
Comment 6 Phillip Wood 2017-01-24 11:31:19 UTC
Created attachment 344115 [details] [review]
Add SJ_BEGIN/END_IGNORE_SWITCH_ENUM

These provide a simple way to disable -Wswitch-enum warnings where they
are unhelpful.
Comment 7 Phillip Wood 2017-01-24 11:31:24 UTC
Created attachment 344116 [details] [review]
Fix -Wswitch-enum warnings

Wrap switch statements in SJ_BEGIN/END_IGNORE_SWITCH_ENUM where the
warning is not useful (i.e. in switch statements that are only
interested in a subset of enum values)
Comment 8 Phillip Wood 2017-01-24 11:31:29 UTC
Created attachment 344117 [details] [review]
Remove sj-main.h

The only prototype used outside sj-main.c which is not already in
sound-juicer.h is set_action_enabled() which has been added to that
header.
Comment 9 Phillip Wood 2017-01-24 11:31:34 UTC
Created attachment 344118 [details] [review]
Fix old style function definitions

Make sure void functions have the prototype f(void) rather than f().
Comment 10 Phillip Wood 2017-01-24 11:31:38 UTC
Created attachment 344119 [details] [review]
Remove duplicate declarations

Make sure functions and variables are only declared once.
Comment 11 Phillip Wood 2017-01-24 11:31:43 UTC
Created attachment 344120 [details] [review]
Do not mix code and declarations

Make sure all variables are declared at the start of each block.
Comment 12 Phillip Wood 2017-01-24 11:31:48 UTC
Created attachment 344121 [details] [review]
Drop gnome-common dependency

Use our own autogen.sh and the appropriate autoconf archive macros
instead¹. Using AX_COMPILER_FLAGS turns on several new sets of compile
warnings and means -Werror is on by default in non release builds.

¹ https://wiki.gnome.org/Projects/GnomeCommon/Migration
Comment 13 Phillip Wood 2017-02-08 11:52:13 UTC
Created attachment 345189 [details] [review]
Remove shadow variables

Prefix global variables with sj_ to avoid local variables shadowing
them. Found with -Wshadow
Comment 14 Phillip Wood 2017-02-08 11:52:18 UTC
Created attachment 345190 [details] [review]
Constify string literals

Ensure string literals are declared const to prevent warnings from
-Wwrite-strings.
Comment 15 Phillip Wood 2017-02-08 11:52:23 UTC
Created attachment 345191 [details] [review]
Add SJ_BEGIN/END_IGNORE_DISCARDED_QUANTIFIERS

These make it simple to turn -Wdiscarded-quantifiers warnings created by
-Wwrite-strings off. As clang uses
-Wincompatible-pointer-types-discards-qualifiers instead we have to
check which compiler is being used.
Comment 16 Phillip Wood 2017-02-08 11:52:28 UTC
Created attachment 345192 [details] [review]
Fix -Wdiscarded-quantifiers warnings

-Wwrite-strings causes a couple of -Wdiscarded-quantifier warnings that
while technically correct are really false positives as the strings are
never modified.
Comment 17 Phillip Wood 2017-02-08 11:52:33 UTC
Created attachment 345193 [details] [review]
Fix -Wswitch-default warnings

Add a default clause to switch statements that are missing one.
Comment 18 Phillip Wood 2017-02-08 11:52:38 UTC
Created attachment 345194 [details] [review]
Add SJ_BEGIN/END_IGNORE_SWITCH_ENUM

These provide a simple way to disable -Wswitch-enum warnings where they
are unhelpful.

https://bugzilla.gnome.org/show_bug.cgi?id=777692

squash! Add SJ_BEGIN/END_IGNORE_SWITCH_ENUM
Comment 19 Phillip Wood 2017-02-08 11:52:43 UTC
Created attachment 345195 [details] [review]
Fix -Wswitch-enum warnings

Wrap switch statements in SJ_BEGIN/END_IGNORE_SWITCH_ENUM where the
warning is not useful (i.e. in switch statements that are only
interested in a subset of enum values)
Comment 20 Phillip Wood 2017-02-08 11:52:48 UTC
Created attachment 345196 [details] [review]
Silence -Wsometimes-uninitialized

track_offset is not actually used uninitialized but clang cannot deduce
that so gives a false warning.
Comment 21 Phillip Wood 2017-02-08 11:52:54 UTC
Created attachment 345197 [details] [review]
Fix -Wsign-compare warning

max_realfile needs to be an int as it’s passed to printf to control the
field width but strlen returns size_t. The casts are a bit ugly but the
strings are filenames so shouldn’t overflow an int.
Comment 22 Phillip Wood 2017-02-08 11:52:59 UTC
Created attachment 345198 [details] [review]
Fix -Wsuggest-attribute warnings

Add a couple of function attributes suggested by the compiler.
Comment 23 Phillip Wood 2017-02-08 11:53:04 UTC
Created attachment 345199 [details] [review]
Remove sj-main.h

The only prototype used outside sj-main.c which is not already in
sound-juicer.h is set_action_enabled() which has been added to that
header.
Comment 24 Phillip Wood 2017-02-08 11:53:10 UTC
Created attachment 345200 [details] [review]
Fix old style function definitions

Make sure void functions have the prototype f(void) rather than f().
Comment 25 Phillip Wood 2017-02-08 11:53:15 UTC
Created attachment 345201 [details] [review]
Remove duplicate declarations

Make sure functions and variables are only declared once.
Comment 26 Phillip Wood 2017-02-08 11:53:20 UTC
Created attachment 345202 [details] [review]
Do not mix code and declarations

Make sure all variables are declared at the start of each block.
Comment 27 Phillip Wood 2017-02-08 11:53:26 UTC
Created attachment 345203 [details] [review]
Drop gnome-common dependency

Use our own autogen.sh and the appropriate autoconf archive macros
instead¹. Using AX_COMPILER_FLAGS turns on several new sets of compile
warnings and means -Werror is on by default in non release builds.

¹ https://wiki.gnome.org/Projects/GnomeCommon/Migration
Comment 28 Phillip Wood 2017-02-13 10:56:48 UTC
Attachment 345189 [details] pushed as ddb60b2 - Remove shadow variables
Attachment 345190 [details] pushed as 6743985 - Constify string literals
Attachment 345191 [details] pushed as e38111d - Add SJ_BEGIN/END_IGNORE_DISCARDED_QUANTIFIERS
Attachment 345192 [details] pushed as 78a62d7 - Fix -Wdiscarded-quantifiers warnings
Attachment 345193 [details] pushed as 05e6fa1 - Fix -Wswitch-default warnings
Attachment 345194 [details] pushed as 96f8999 - Add SJ_BEGIN/END_IGNORE_SWITCH_ENUM
Attachment 345195 [details] pushed as 2b806cc - Fix -Wswitch-enum warnings
Attachment 345199 [details] pushed as e4848b6 - Remove sj-main.h
Attachment 345200 [details] pushed as e119157 - Fix old style function definitions
Attachment 345201 [details] pushed as b3c9a88 - Remove duplicate declarations
Attachment 345202 [details] pushed as ac33bfb - Do not mix code and declarations
Attachment 345203 [details] pushed as 1d3a25a - Drop gnome-common dependency
Comment 29 GNOME Infrastructure Team 2021-05-17 16:09:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/sound-juicer/-/issues/176.