FreeBSD Bugzilla – Attachment 210068 Details for
Bug 242693
[PowerPC] sysutils/libcdio fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: pragma GCC diagnostic not allowed inside functions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Disable GCC diagnostic pragma for older GCC
libcdio-powerpc.diff (text/plain), 1.49 KB, created by
Jason E. Hale
on 2019-12-19 16:14:07 UTC
(
hide
)
Description:
Disable GCC diagnostic pragma for older GCC
Filename:
MIME Type:
Creator:
Jason E. Hale
Created:
2019-12-19 16:14:07 UTC
Size:
1.49 KB
patch
obsolete
>Index: sysutils/libcdio/files/patch-lib_iso9660_iso9660.c >=================================================================== >--- sysutils/libcdio/files/patch-lib_iso9660_iso9660.c (nonexistent) >+++ sysutils/libcdio/files/patch-lib_iso9660_iso9660.c (working copy) >@@ -0,0 +1,26 @@ >+Fix build on GCC older than 4.6.0 which does not allow #pragma GCC diagnostic >+inside of functions. >+ >+PR: 242693 >+ >+--- lib/iso9660/iso9660.c.orig 2019-04-13 15:15:15 UTC >++++ lib/iso9660/iso9660.c >+@@ -373,12 +373,18 @@ iso9660_set_ltime_with_timezone(const struct tm *p_tm, >+ >+ if (!p_tm) return; >+ >++#if defined(__GNUC__) && __GNUC__ >= 5 >++#pragma GCC diagnostic push >+ #pragma GCC diagnostic ignored "-Wformat-truncation" >++#endif >+ snprintf(_pvd_date, 17, >+ "%4.4d%2.2d%2.2d" "%2.2d%2.2d%2.2d" "%2.2d", >+ p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday, >+ p_tm->tm_hour, p_tm->tm_min, p_tm->tm_sec, >+ 0 /* 1/100 secs */ ); >++#if defined(__GNUC__) && __GNUC__ >= 5 >++#pragma GCC diagnostic pop >++#endif >+ >+ /* Set time zone in 15-minute interval encoding. */ >+ pvd_date->lt_gmtoff -= (time_zone / 15); > >Property changes on: sysutils/libcdio/files/patch-lib_iso9660_iso9660.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jhale
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 242693
: 210068 |
210069