Author: sebor
Date: Thu Aug 10 14:33:38 2006
New Revision: 430542
URL: http://svn.apache.org/viewvc?rev=430542&view=rev
Log:
2006-08-10 Martin Sebor <[EMAIL PROTECTED]>
* 0.strncmp.cpp (TEST): Avoided unnecessarily casting away constness
in order to silence gcc warning: cast from `const char*' to `void*'
discards qualifiers from pointer target type.
Modified:
incubator/stdcxx/trunk/tests/self/0.strncmp.cpp
Modified: incubator/stdcxx/trunk/tests/self/0.strncmp.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.strncmp.cpp?rev=430542&r1=430541&r2=430542&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.strncmp.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.strncmp.cpp Thu Aug 10 14:33:38 2006
@@ -6,22 +6,23 @@
*
************************************************************************
*
- * Copyright 2005-2006 The Apache Software Foundation or its licensors,
- * as applicable.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at
*
- * Copyright 2004-2006 Rogue Wave Software.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2004-2006 Rogue Wave Software.
*
**************************************************************************/
@@ -65,8 +66,9 @@
if (expect != result) { \
exit_status = 2; \
fprintf (stderr, "line %d: rw_strncmp(%p, %p, %u, %d) == %d, " \
- "got %d\n", __LINE__, (void*)s1, (void*)s2, \
- unsigned (nc), fl, expect, result); \
+ "got %d\n", __LINE__, (const void*)s1, \
+ (const void*)s2, unsigned (nc), fl, expect, \
+ result); \
} \
} while (0)