linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* -Wold-style-definition warnings
@ 2025-08-15 16:23 Steve Dickson
  2025-08-15 17:26 ` Chuck Lever
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Dickson @ 2025-08-15 16:23 UTC (permalink / raw)
  To: libtirpc; +Cc: Linux NFS Mailing list

Hello,

On the more recent gcc version (15.1.1) the
-Wold-style-definition flag is set by default.

This causes
     warning: old-style function definition [-Wold-style-definition]

warnings when functions are defined like

int add(a, b)
int a;
int b;
{}

instead of like this

int add(int a, int b)
{}

Now I did fix these warnings in the latest rpcbind
release... But libtirpc is a different story.

I would have to change almost every single function
in the library to remove these warnings or add I
could add -Wno-old-style-definition to the CFLAGS.

Now I'm more that willing to do the work... Heck
I'm halfway through... But does it make sense to
change the foot print of every function for a
warning that may not make any sense?

Thoughts...

tia,

steved.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-18  0:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 16:23 -Wold-style-definition warnings Steve Dickson
2025-08-15 17:26 ` Chuck Lever
2025-08-15 18:07   ` Steve Dickson
2025-08-15 18:18     ` Chuck Lever
2025-08-15 18:32       ` Steve Dickson
2025-08-18  0:50       ` [Libtirpc-devel] " Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).