]> pd.if.org Git - pdclib.old/commitdiff
Fix warnings
authorOwen Shepherd <owen.shepherd@e43.eu>
Thu, 27 Dec 2012 01:13:24 +0000 (01:13 +0000)
committerOwen Shepherd <owen.shepherd@e43.eu>
Thu, 27 Dec 2012 01:13:24 +0000 (01:13 +0000)
24 files changed:
functions/_PDCLIB/print.c
functions/string/strncmp.c
functions/wchar/wcsncmp.c
internals/_PDCLIB_float.h
opt/dlmalloc/dlmalloc.c
opt/dlmalloc/dlmalloc.h
opt/nothread/cnd_init.c
opt/nothread/cnd_signal.c
opt/nothread/cnd_wait.c
opt/nothread/mtx_destroy.c
opt/nothread/mtx_init.c
opt/nothread/mtx_lock.c
opt/nothread/mtx_timedlock.c
opt/nothread/mtx_trylock.c
opt/nothread/mtx_unlock.c
opt/nothread/thrd_yield.c
opt/nothread/tss_create.c
opt/nothread/tss_delete.c
opt/nothread/tss_get.c
opt/nothread/tss_set.c
opt/notime/time.c
opt/notime/timespec_get.c
platform/posix/functions/_PDCLIB/_PDCLIB_freepages.c
platform/posix/functions/stdio/_PDCLIB_open.c

index b58fdd91cb8c7376a082dfde3fd426c5d164c398..95fbe9c752e62acd964b2f5c981e3c6e2d7d56da 100644 (file)
@@ -120,7 +120,7 @@ static void int2base( uintmax_t value, struct _PDCLIB_status_t * status )
     unsigned padding = 0;
     if ( ( ! ( status->flags & E_minus ) ) && ( status->flags & E_zero ) )    
     {
-        while( written < status->width ) 
+        while( written < (int) status->width ) 
         {
             outend[-++written] = '0';
             padding++;
@@ -156,7 +156,7 @@ static void int2base( uintmax_t value, struct _PDCLIB_status_t * status )
     // Space padding to field width
     if ( ! ( status->flags & ( E_minus | E_zero ) ) )
     {
-        while( written < status->width ) outend[-++written] = ' ';
+        while( written < (int) status->width ) outend[-++written] = ' ';
     }
 
     // Write output
index 43321709ee515a0d4fcc1380b0bf2b8e0d250d26..ad9e6209565508fbf6ea16d1369413096ea86741 100644 (file)
@@ -18,7 +18,7 @@ int strncmp( const char * s1, const char * s2, size_t n )
         ++s2;
         --n;
     }
-    if ( ( n == 0 ) )
+    if ( n == 0 )
     {
         return 0;
     }
index 920d64719203e86ecc81f43b46c9946ea7c968f3..7ca9a9823b2264df3270c098553dcbc8c6399e5d 100644 (file)
@@ -18,7 +18,7 @@ int wcsncmp( const wchar_t * s1, const wchar_t * s2, size_t n )
         ++s2;\r
         --n;\r
     }\r
-    if ( ( n == 0 ) )\r
+    if ( n == 0 )\r
     {\r
         return 0;\r
     }\r
index a7305a455b19bb96567a6fb03ba0145ffd932d95..c48d0eca6957c955a93ceceb7c7819a208bf2d18 100644 (file)
@@ -91,4 +91,3 @@
 #define _PDCLIB_LDBL_MAX_10_EXP  _PDCLIB_concat3( _PDCLIB_FP_, _PDCLIB_LDOUBLE_TYPE, _MAX_10_EXP )\r
 \r
 #endif\r
-         
\ No newline at end of file
index e0bebcdff03539b030fe03da8b88ce4c259208f6..18cf0d6511db5bd30a15ec6cb1440d5c2bf84b92 100644 (file)
@@ -3836,7 +3836,7 @@ static void* mmap_alloc(mstate m, size_t nb) {
 /* Realloc using mmap */\r
 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb, int flags) {\r
   size_t oldsize = chunksize(oldp);\r
-  flags = flags; /* placate people compiling -Wunused */\r
+  (void) flags;\r
   if (is_small(nb)) /* Can't shrink mmap regions below small size */\r
     return 0;\r
   /* Keep old chunk if big enough but not too big */\r
@@ -6262,4 +6262,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 374fa49310275d745ba5ebd9ce297e899d70d0ba..c846557b6a929d3112cbdd98c5bd3074bd4fb207 100644 (file)
@@ -76,4 +76,4 @@ static void init_malloc_global_mutex(void)
 #define LACKS_SYS_TYPES_H\r
 #define LACKS_SCHED_H\r
 #include <stdlib.h>\r
-#include <errno.h>
\ No newline at end of file
+#include <errno.h>\r
index 2d3fc7e66536f1f61fd07d67be7ec14390ff7d59..9e22f7d89d62a3d71c55f661ceb128b733ba1815 100644 (file)
@@ -16,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 363806e554899d5156a10c58815390835eef8270..74fa6761a54ff392be1a6d6c47c4ea7dc8db1612 100644 (file)
@@ -15,4 +15,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index be2fcbbe3d427373f1e6ed3e41be891c8ed80423..54c3917cbf1356d1923cefd0c13b0c849f61240e 100644 (file)
@@ -15,4 +15,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 5227274469d74cc958f2565478a8efd2651ea586..8f359c8427f3c8c2b90259c8f6d7e2dfe84af126 100644 (file)
@@ -13,4 +13,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 76b3eeb10482d8393b4755d928644bec5b6bb0ec..21bb473e2f88ef813dfc83886f73b8551869f08f 100644 (file)
@@ -16,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index efe26bd4de6f0b16ae7c706938ff56b4586fed77..13b0d1ca6b5089e860d7c897c313da8d3239ca05 100644 (file)
@@ -16,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 6ab7dfb8054b048ebb6d7ba7fd507978e31fea2b..699d0041cff0499cb313fc0deaec2421d2e4322a 100644 (file)
@@ -15,4 +15,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 20efc99403afcc8316c9133ff06a2e9913dc9e0b..e7bd8852011e6ef7ee1a487b16b0b1eaab5c917d 100644 (file)
@@ -16,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 97a93a67ac021e8c319c6966a0609859446dc511..d22d40e0ed3c75859ea614771950293c577a8236 100644 (file)
@@ -17,4 +17,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index c92c495ef88c161db41c3b14b5edfeb2c1435a2c..2d184ce8138d3a9ea922f94deeec55384d68fbb0 100644 (file)
@@ -15,4 +15,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index e7ad53a835231716ee19d55fb0b9ba5bef9b5bf0..7faa4f9f72637a4ffa99cf539c6a1459989d34af 100644 (file)
@@ -18,4 +18,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 758209f6f611c50f0f35dc39823a1cbc41bea515..0876e7d04848aa7bcaf22650a35acd717e705c76 100644 (file)
@@ -16,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index c302fffb62c389bf4024dcd436f5b7483caced29..ee031f1593468e0428f6cbc616a329fd5335e225 100644 (file)
@@ -27,4 +27,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index d8ae84bd36560fb5724d58390b9e51d02a55b615..da02b04be24b07aedb84e0d2e71dc380d37e8d16 100644 (file)
@@ -17,4 +17,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 6a4743a48e35360d03e3db5a9fd3493b217c4f24..3933af61a89ad10647f265087b7334aead107e4c 100644 (file)
@@ -16,4 +16,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 0dcec1a6ce3783bdd58655b0f149743b38c54b67..9332ce307955609ecf0cc0c78af3bb8bd25dc812 100644 (file)
@@ -15,4 +15,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index ed4ea0ca1fa7a63083498ecc78422954fddbda11..5b21c4b753cd0dac47232a673f94afa7974b83a6 100644 (file)
@@ -29,4 +29,4 @@ int main( void )
     return TEST_RESULTS;
 }
 
-#endif
\ No newline at end of file
+#endif
index 9f3cdec90fd9f503b4cc551cbf3a7420fc66b930..17bd022e4f51f805a961f2b49d8c8a73f4612bed 100644 (file)
@@ -59,4 +59,4 @@ int main( void )
     return TEST_RESULTS;
 }
 
-#endif
\ No newline at end of file
+#endif