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 784081 - More build fixes
More build fixes
Status: RESOLVED FIXED
Product: libgepub
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: libgepub Maintainer(s)
libgepub Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-06-22 08:33 UTC by Bastien Nocera
Modified: 2017-06-23 06:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lib: Fix gepub_text_chunk_new() related warnings (3.34 KB, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
lib: Fix warnings in xmlGetProp() usage (1.48 KB, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
lib: Fix signedness warnings in GepubArchive (779 bytes, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
lib: Fix signedness warnings in GepubDoc (1.26 KB, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
lib: Fix signedness warnings in the utility functions (2.97 KB, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
lib: Fix memory leak in gepub_utils_get_text_elements() (785 bytes, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
tests: Fixed signedness warnings (1011 bytes, patch)
2017-06-22 08:33 UTC, Bastien Nocera
committed Details | Review
build: Fix "ld" warning (762 bytes, patch)
2017-06-22 08:34 UTC, Bastien Nocera
committed Details | Review
lib: Fix API docs (1.50 KB, patch)
2017-06-22 08:34 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2017-06-22 08:33:17 UTC
.
Comment 1 Bastien Nocera 2017-06-22 08:33:21 UTC
Created attachment 354223 [details] [review]
lib: Fix gepub_text_chunk_new() related warnings

There was no need to use an unsigned char for storage or as a function
argument, so change the data type and cast the calls instead.
Comment 2 Bastien Nocera 2017-06-22 08:33:27 UTC
Created attachment 354224 [details] [review]
lib: Fix warnings in xmlGetProp() usage

libxml's "BAD_CAST()" was made for this.
Comment 3 Bastien Nocera 2017-06-22 08:33:32 UTC
Created attachment 354225 [details] [review]
lib: Fix signedness warnings in GepubArchive
Comment 4 Bastien Nocera 2017-06-22 08:33:37 UTC
Created attachment 354226 [details] [review]
lib: Fix signedness warnings in GepubDoc
Comment 5 Bastien Nocera 2017-06-22 08:33:43 UTC
Created attachment 354227 [details] [review]
lib: Fix signedness warnings in the utility functions
Comment 6 Bastien Nocera 2017-06-22 08:33:47 UTC
Created attachment 354228 [details] [review]
lib: Fix memory leak in gepub_utils_get_text_elements()
Comment 7 Bastien Nocera 2017-06-22 08:33:55 UTC
Created attachment 354229 [details] [review]
tests: Fixed signedness warnings
Comment 8 Bastien Nocera 2017-06-22 08:34:07 UTC
Created attachment 354230 [details] [review]
build: Fix "ld" warning

"-export-symbols-regex" is a libtool command, not an ld one:
/usr/bin/ld: warning: cannot find entry symbol xport-symbols-regex "^gepub_*"; defaulting to 0000000000003d70
Comment 9 Bastien Nocera 2017-06-22 08:34:13 UTC
Created attachment 354231 [details] [review]
lib: Fix API docs

Fixing the GIR scanner's errors.
Comment 10 Bastien Nocera 2017-06-22 08:51:27 UTC
Review of attachment 354230 [details] [review]:

The easiest way to fix this would be to add "G_GNUC_INTERNAL" to the functions that are internal only.
You could also use a simple map file:
https://git.gnome.org/browse/totem-pl-parser/tree/plparse/meson.build#n58
Comment 11 Daniel Garcia 2017-06-23 06:28:16 UTC
Attachment 354223 [details] pushed as 953d8ef - lib: Fix gepub_text_chunk_new() related warnings
Attachment 354224 [details] pushed as 073f365 - lib: Fix warnings in xmlGetProp() usage
Attachment 354225 [details] pushed as 5fd5bb2 - lib: Fix signedness warnings in GepubArchive
Attachment 354226 [details] pushed as 977eb85 - lib: Fix signedness warnings in GepubDoc
Attachment 354227 [details] pushed as f219b3c - lib: Fix signedness warnings in the utility functions
Attachment 354228 [details] pushed as 79a416a - lib: Fix memory leak in gepub_utils_get_text_elements()
Attachment 354229 [details] pushed as a260fab - tests: Fixed signedness warnings
Attachment 354230 [details] pushed as 4b332c8 - build: Fix "ld" warning
Attachment 354231 [details] pushed as 2cacec1 - lib: Fix API docs