]> granicus.if.org Git - graphviz/commitdiff
lib/glcomp: remove unused 'glCompButton.customptr'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 00:28:25 +0000 (17:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:21:10 +0000 (11:21 -0700)
With Clang on macOS, this causes compiler warnings due to initializing a pointer
with `'\0'`. This fails the CMake build which will be enabled in a future
commit. We could rephrase this, but it is simpler to just remove this unused
member.

Gitlab: #1836, #1854

lib/glcomp/glcompbutton.c
lib/glcomp/glcompdefs.h

index 1328f6a0f5293fe30d9e082723f5669f84b1beb2..33290c1c9560a645d7ffdf730ed2da4d162e2e61 100644 (file)
@@ -41,7 +41,6 @@ glCompButton *glCompButtonNew(glCompObj * par, GLfloat x, GLfloat y,
     p->status = 0;             //0 not pressed 1 pressed;
     p->groupid = 0;
     p->common.callbacks.click = '\0';
-    p->customptr = '\0';
     /*set event functions */
 
     p->common.functions.draw = (glcompdrawfunc_t)glCompButtonDraw;
index dbcd0ce8f54f5c7e948c28c408953c1c66ae4440..1425fe9023ddbbad6aebd8a93cd919c241c3131a 100644 (file)
@@ -296,7 +296,6 @@ extern "C" {
        int groupid;
        glCompImage *image;     /*glyph */
        glCompButtonGlyph glyphPos;
-       void *customptr;        //general purpose void pointer to pass to call back
        int data;
 
     };