Skip to content

Commit aad0a40

Browse files
committed
-Wbad-function-cast caused weird and unreliable output on gcc-14 + 5.40.1
Mauke and me decided it better be removed
1 parent b60d376 commit aad0a40

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
1.648 - 2025-03-11, H.Merijn Brand
1+
1.648 - 2025-03-14, H.Merijn Brand
22
* Correct sprintf usage for trace_msg (issue#132)
33
* Add DBIXS_VERSION & DBIXS_RELEASE to dbixs_rev.h
4+
* Remove -Wbad-function-cast
45

56
1.647 - 2025-01-20, H.Merijn Brand
67
* Spellcheck

Makefile.PL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ if (my $gccversion = $Config{gccversion}) { # ask gcc to be more pedantic
106106
if ($gccversion =~ m/ clang ([0-9][-0-9.]*)/i) {
107107
print "Your perl was compiled with Clang (version $1). As this is not GCC, version checking is skipped.\n";
108108
# https://clang.llvm.org/docs/DiagnosticsReference.html
109-
$opts{DEFINE} .= " -W -Wall -Wpointer-arith -Wbad-function-cast";
109+
$opts{DEFINE} .= " -W -Wall -Wpointer-arith";
110110
$opts{DEFINE} .= " -Wno-comment -Wno-sign-compare -Wno-cast-qual";
111111
$opts{DEFINE} .= " -Wmissing-noreturn -Wno-unused-parameter";
112112
$opts{DEFINE} .= " -Wno-compound-token-split-by-macro -Wno-constant-conversion";
@@ -120,7 +120,7 @@ if (my $gccversion = $Config{gccversion}) { # ask gcc to be more pedantic
120120
if $gccversion =~ m/^\D*(1|2\.[1-8])\b/;
121121
print "Your perl was compiled with gcc (version $Config{gccversion}), okay.\n";
122122
$gccversion =~ s/[^\d\.]//g; # just a number please
123-
$opts{DEFINE} .= " -W -Wall -Wpointer-arith -Wbad-function-cast";
123+
$opts{DEFINE} .= " -W -Wall -Wpointer-arith";
124124
$opts{DEFINE} .= " -Wno-comment -Wno-sign-compare -Wno-cast-qual";
125125
$opts{DEFINE} .= " -Wmissing-noreturn -Wno-unused-parameter" if $gccversion ge "3.0";
126126
if ($is_developer && $::opt_g) {

lib/DBI/Changes.pm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DBI::Changes - List of significant changes to the DBI
1212
1313
=encoding UTF-8
1414
15-
=head2 Changes in DBI 1.648 - 11 Mar 2025
15+
=head2 Changes in DBI 1.648 - 14 Mar 2025
1616
1717
=over 2
1818
@@ -24,6 +24,10 @@ Correct sprintf usage for trace_msg (issue#132)
2424
2525
Add DBIXS_VERSION & DBIXS_RELEASE to dbixs_rev.h
2626
27+
=item *
28+
29+
Remove -Wbad-function-cast
30+
2731
=back
2832
2933
=head2 Changes in DBI 1.647 - 20 Jan 2025

0 commit comments

Comments
 (0)