While compiling 2.8.0 I ran into some shadowed function declaration
warnings, I believe the correct solution is to just rename the
offending functions/variables, however the compiler is supposed to use
the correct functions anyhow.
Attached is a patch to rename the variables and fix the following
build warnings:

In file included from src/io/bmi/bmi_ib/ib.h:12,
                 from src/io/bmi/bmi_ib/util.c:15:
./src/common/quicklist/quicklist.h: In function 'qlist_exists':
./src/common/quicklist/quicklist.h:195: warning: declaration of 'link'
shadows a global declaration
/usr/include/unistd.h:757: warning: shadowed declaration is here



Kyle Schochenmaier
--- /home/kyle/pvfs2/src/common/quicklist/quicklist.h	2009-01-28 11:19:22.000000000 -0600
+++ src/common/quicklist/quicklist.h	2009-02-18 19:50:36.000000000 -0600
@@ -192,7 +192,7 @@ static __inline__ void qlist_splice(stru
          &pos->member != (head); 					\
          pos = n, n = qlist_entry(n->member.next, typeof(*n), member))
 
-static inline int qlist_exists(struct qlist_head *list, struct qlist_head *link)
+static inline int qlist_exists(struct qlist_head *list, struct qlist_head *qlink)
 {
     struct qlist_head *pos;
 
@@ -200,7 +200,7 @@ static inline int qlist_exists(struct ql
 
     qlist_for_each(pos, list)
     {
-        if(pos == link)
+        if(pos == qlink)
         {
             return 1;
         }
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to