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 704117 - nautilus-global-preferences: use 'extern' properly
nautilus-global-preferences: use 'extern' properly
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-12 16:45 UTC by Allison Karlitskaya (desrt)
Modified: 2013-07-12 19:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
nautilus-global-preferences: use 'extern' properly (2.77 KB, patch)
2013-07-12 16:45 UTC, Allison Karlitskaya (desrt)
committed Details | Review

Description Allison Karlitskaya (desrt) 2013-07-12 16:45:13 UTC
See patch.
Comment 1 Allison Karlitskaya (desrt) 2013-07-12 16:45:14 UTC
Created attachment 249028 [details] [review]
nautilus-global-preferences: use 'extern' properly

Variables in header files should have 'extern' on them and be defined
from a single .c file, otherwise you get a copy of the variable every
time you #include the header.

-fcommon masks this problem, but building with -fno-common fails because
of it.
Comment 2 Colin Walters 2013-07-12 17:46:18 UTC
Review of attachment 249028 [details] [review]:

Not a nautilus reviewer, but this looks correct to me.
Comment 3 Allison Karlitskaya (desrt) 2013-07-12 19:18:46 UTC
Attachment 249028 [details] pushed as 96554c2 - nautilus-global-preferences: use 'extern' properly