Linux-NFS Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] configure.ac: Turn off cast-function warnings
@ 2019-05-08 13:05 Steve Dickson
  2019-05-10 15:08 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2019-05-08 13:05 UTC (permalink / raw)
  To: Linux NFS Mailing list

The rpcgen generated code from .x files creates
a cast-function-type warning.

Due to the age and stability of the code
turning off the warning makes more sense
than re-writing the .x files.

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index e89ca67..4e72790 100644
--- a/configure.ac
+++ b/configure.ac
@@ -592,6 +592,7 @@ my_am_cflags="\
  -Werror=parentheses \
  -Werror=aggregate-return \
  -Werror=unused-result \
+ -Wno-cast-function-type \
  -fno-strict-aliasing \
 "
 
-- 
2.20.1


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

* Re: [PATCH] configure.ac: Turn off cast-function warnings
  2019-05-08 13:05 [PATCH] configure.ac: Turn off cast-function warnings Steve Dickson
@ 2019-05-10 15:08 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2019-05-10 15:08 UTC (permalink / raw)
  To: Linux NFS Mailing list



On 5/8/19 9:05 AM, Steve Dickson wrote:
> The rpcgen generated code from .x files creates
> a cast-function-type warning.
> 
> Due to the age and stability of the code
> turning off the warning makes more sense
> than re-writing the .x files.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed...

steved.

> ---
>  configure.ac | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure.ac b/configure.ac
> index e89ca67..4e72790 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -592,6 +592,7 @@ my_am_cflags="\
>   -Werror=parentheses \
>   -Werror=aggregate-return \
>   -Werror=unused-result \
> + -Wno-cast-function-type \
>   -fno-strict-aliasing \
>  "
>  
> 

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08 13:05 [PATCH] configure.ac: Turn off cast-function warnings Steve Dickson
2019-05-10 15:08 ` Steve Dickson

Linux-NFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-nfs/0 linux-nfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nfs linux-nfs/ https://lore.kernel.org/linux-nfs \
		linux-nfs@vger.kernel.org linux-nfs@archiver.kernel.org
	public-inbox-index linux-nfs


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-nfs


AGPL code for this site: git clone https://public-inbox.org/ public-inbox