bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile warnings when including avltree-list and gcc-warnings is ena


From: Paul Eggert
Subject: Re: compile warnings when including avltree-list and gcc-warnings is enabled
Date: Sat, 06 Sep 2014 17:30:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Dylan Cali wrote:
--- a/lib/gl_avltree_list.h
+++ b/lib/gl_avltree_list.h
@@ -24,6 +24,7 @@
  extern "C" {
  #endif

+extern void gl_avltree_list_check_invariants (gl_list_t list);

On second thought this doesn't look wise, as the function is not expected to be exported to ordinary clients, only to the test cases. So let's leave the .h file alone, and put a declaration in the .c file instead.

I suppose a pragma is the way to silence the unwanted diagnostics, yes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]