OSSP CVS Repository

ossp - Ticket #40
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

Ticket 40: avoid annoying compiler warning message when -std=c99

compiler says "warning: assignment discards qualifiers from pointer target type" when I use gcc -std=c99. Following is a small workaround

--- ex.h.orig   2004-03-13 17:56:55.000000000 +0800
+++ ex.h        2004-03-13 18:03:55.000000000 +0800
@@ -86,9 +86,9 @@
     void *ex_object;
     void *ex_value;
     /* throw point */
-    char *ex_file;
+    const char *ex_file;
     int   ex_line;
-    char *ex_func;
+    const char *ex_func;
 } ex_t;
                                                                                                                              
 /* declare the context type (private) */
[Add remarks]

Remarks:

Properties:

Type: code           Version: 1.0.2 
Status: fixed          Created: 2004-Mar-13 11:07
Severity:          Last Change: 2004-Mar-18 16:51
Priority:          Subsystem: ex 
Assigned To: rse           Derived From:  
Creator: anonymous 

CVSTrac 2.0.1