diff options
| -rw-r--r-- | meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-multimedia/cdrkit/files/fix-incompatible-pointer-type-error.patch | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb index 9fd91114d7..bbce3e3bfd 100644 --- a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb +++ b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ | |||
| 13 | file://0001-genisoimage-Add-missing-extern-definition.patch \ | 13 | file://0001-genisoimage-Add-missing-extern-definition.patch \ |
| 14 | file://0001-add-new-option-eltorito-platform.patch \ | 14 | file://0001-add-new-option-eltorito-platform.patch \ |
| 15 | file://0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch \ | 15 | file://0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch \ |
| 16 | file://fix-incompatible-pointer-type-error.patch \ | ||
| 16 | " | 17 | " |
| 17 | SRC_URI:append:class-nativesdk = " \ | 18 | SRC_URI:append:class-nativesdk = " \ |
| 18 | file://0001-install-netscsid-to-bin-for-nativesdk.patch \ | 19 | file://0001-install-netscsid-to-bin-for-nativesdk.patch \ |
diff --git a/meta-oe/recipes-multimedia/cdrkit/files/fix-incompatible-pointer-type-error.patch b/meta-oe/recipes-multimedia/cdrkit/files/fix-incompatible-pointer-type-error.patch new file mode 100644 index 0000000000..887a54f7f2 --- /dev/null +++ b/meta-oe/recipes-multimedia/cdrkit/files/fix-incompatible-pointer-type-error.patch | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | Fix incompatible pointer type error when gcc option '-Wincompatible-pointer-types' set: | ||
| 2 | |||
| 3 | cdrkit-1.1.11/genisoimage/eltorito.c:399:41: error: passing argument 1 of 'set_721' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 4 | 399 | set_721(&last_section_header->entry_count, nentries); | ||
| 5 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 6 | | | | ||
| 7 | | char (*)[2] | ||
| 8 | In file included from cdrkit/1.1.11/cdrkit-1.1.11/genisoimage/eltorito.c:39: | ||
| 9 | cdrkit-1.1.11/genisoimage/genisoimage.h:507:21: note: expected 'char *' but argument is of type 'char (*)[2]' | ||
| 10 | 507 | extern void set_721(char *, unsigned int); | ||
| 11 | | ^~~~~~ | ||
| 12 | |||
| 13 | Upstream-Status: Inactive-Upstream [lastrelease: 2010] | ||
| 14 | |||
| 15 | [1]: https://en.wikipedia.org/wiki/Cdrkit | ||
| 16 | |||
| 17 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 18 | |||
| 19 | --- | ||
| 20 | genisoimage/eltorito.c | 4 ++-- | ||
| 21 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/genisoimage/eltorito.c b/genisoimage/eltorito.c | ||
| 24 | index a804988..e48d58c 100644 | ||
| 25 | --- a/genisoimage/eltorito.c | ||
| 26 | +++ b/genisoimage/eltorito.c | ||
| 27 | @@ -396,7 +396,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) | ||
| 28 | (arch != newarch) || | ||
| 29 | (current_boot_entry->type & ELTORITO_SECTION_HEADER)) { | ||
| 30 | if (last_section_header) | ||
| 31 | - set_721(&last_section_header->entry_count, nentries); | ||
| 32 | + set_721((char *)(&last_section_header->entry_count), nentries); | ||
| 33 | nentries = 1; | ||
| 34 | last_section_header = (struct eltorito_sectionheader_entry *) | ||
| 35 | (de2->table + offset); | ||
| 36 | @@ -419,7 +419,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) | ||
| 37 | } | ||
| 38 | |||
| 39 | if (last_section_header) { | ||
| 40 | - set_721(&last_section_header->entry_count, nentries); | ||
| 41 | + set_721((char *)(&last_section_header->entry_count), nentries); | ||
| 42 | last_section_header->header_id[0] = EL_TORITO_SHDR_ID_LAST_SHDR; | ||
| 43 | } | ||
| 44 | |||
