Bardur Arantsson wrote:
Patrice Dumas wrote:
>> Bardur Arantsson wrote:
[--snip--]
On my gcc 4.1.1 on my AMD64 there are also some warnings with
format '%d' expects type 'int', but argument bla has type 'size_t'
Where are those warnings located in the code?
I'll see if I can pinpoint them for you tomorrow.
Here's a patch for this. The patch also fixes a C++-style comment in an
unrelated file.
--
Bardur Arantsson
<[EMAIL PROTECTED]>
- NOBODY expects the Spanish Inquisition!
Cardinal Ximenez of Spain, 'Monty Python's Flying Circus'
Index: src/libelektratools/kdbtools.c
===================================================================
--- src/libelektratools/kdbtools.c (revision 860)
+++ src/libelektratools/kdbtools.c (working copy)
@@ -447,10 +447,10 @@
/* Open the kdb to get the xml schema path */
schemaPath[0]=0;
- // ret=kdbGetValue(KDB_SCHEMA_PATH_KEY,schemaPath,sizeof(schemaPath));
+/* ret=kdbGetValue(KDB_SCHEMA_PATH_KEY,schemaPath,sizeof(schemaPath));
*/
-// if (ret==0) ret = isValidXML(filename,schemaPath);
-// else ret = isValidXML(filename,KDB_SCHEMA_PATH); /* fallback to builtin
*/
+/* if (ret==0) ret = isValidXML(filename,schemaPath); */
+/* else ret = isValidXML(filename,KDB_SCHEMA_PATH); /\* fallback to
builtin *\/ */
/* if the validation was successful */
Index: src/backends/filesys/filesys.c
===================================================================
Index: src/libelektra/keyset.c
===================================================================
--- src/libelektra/keyset.c (revision 860)
+++ src/libelektra/keyset.c (working copy)
@@ -1042,7 +1042,7 @@
written+=fprintf(stream,"<?xml version=\"1.0\"
encoding=\"%s\"?>\n",
codeset);
written+=fprintf(stream,
- "\n\n<!-- Generated by Elektra API. Total of %d keys.
-->\n\n\n\n",ks->size);
+ "\n\n<!-- Generated by Elektra API. Total of %d keys.
-->\n\n\n\n",(unsigned int) ks->size);
written+=fprintf(stream,"<keyset
xmlns=\"http://www.libelektra.org\"\n\
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n\
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Registry-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/registry-list