diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-10-26 13:58:11 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-10-26 13:58:11 +0300 |
commit | db30fe125f32439c108468319c98caaa94dfe7bb (patch) | |
tree | 3419cc5667e1fcbd6a19d88ee6a6cbbd0fd5a005 /winsup | |
parent | 13d5cc4020ca1e24c256204b489745888f84d6c0 (diff) |
* security.h (cygpsid::debug_print): Avoid compiler warnings.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/security.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3392bfe09..08e7efe79 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-10-26 Corinna Vinschen <corinna@vinschen.de> + + * security.h (cygpsid::debug_print): Avoid compiler warnings. + 2003-10-25 Corinna Vinschen <corinna@vinschen.de> * path.cc (normalize_posix_path): Test runs of more than two diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index a7e2515c7..e8e4f4745 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -51,7 +51,7 @@ public: void debug_print (const char *prefix = NULL) const { - char buf[256]; + char buf[256] __attribute__ ((unused)); debug_printf ("%s %s", prefix ?: "", string (buf) ?: "NULL"); } }; |