Is that warning about "unused variables"? If yes, you can shut them up with this:

    (void) cp;
    (void) id1;
    // ... and so on

or by omitting the names in the parameter list:

    static bool
    collisionCallback(
        btManifoldPoint&,
        const btCollisionObjectWrapper* obj1,
        int,
        int,
        // ...