Skip to content

Conversation

@anhu
Copy link
Member

@anhu anhu commented Jan 29, 2026

This commit leaned heavily on Claude.

This commit leaned heavily on Claude.
Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of build warnings:

bash-3.2$ make
gcc -o mcast-peer mcast-peer.c -Wall -Wextra  -Os -lwolfssl -lm -lpthread
mcast-peer.c:186:9: warning: unused variable 'ret' [-Wunused-variable]
    int ret;
        ^
mcast-peer.c:188:9: warning: unused variable 'txSd' [-Wunused-variable]
    int txSd = -1;
        ^
mcast-peer.c:189:9: warning: unused variable 'rxSd' [-Wunused-variable]
    int rxSd = -1;
        ^
mcast-peer.c:190:18: warning: unused variable 'ctx' [-Wunused-variable]
    WOLFSSL_CTX* ctx = NULL;
                 ^
mcast-peer.c:191:14: warning: unused variable 'sslTx' [-Wunused-variable]
    WOLFSSL* sslTx = NULL;
             ^
mcast-peer.c:192:14: warning: unused variable 'sslRx' [-Wunused-variable]
    WOLFSSL* sslRx = NULL;
             ^
mcast-peer.c:193:24: warning: unused variable 'txAddr' [-Wunused-variable]
    struct sockaddr_in txAddr;
                       ^
mcast-peer.c:194:9: warning: unused variable 'i' [-Wunused-variable]
    int i;
        ^
mcast-peer.c:197:19: warning: unused variable 'pms' [-Wunused-variable]
    unsigned char pms[PMS_SIZE];
                  ^
mcast-peer.c:198:19: warning: unused variable 'clientRandom' [-Wunused-variable]
    unsigned char clientRandom[RANDOM_SIZE];
                  ^
mcast-peer.c:199:19: warning: unused variable 'serverRandom' [-Wunused-variable]
    unsigned char serverRandom[RANDOM_SIZE];
                  ^
mcast-peer.c:201:19: warning: unused variable 'suite' [-Wunused-variable]
    unsigned char suite[2] = { 0x00, 0xFE };
                  ^
mcast-peer.c:203:12: warning: unused variable 'lastSend' [-Wunused-variable]
    time_t lastSend = 0;
           ^
mcast-peer.c:204:9: warning: unused variable 'msgCount' [-Wunused-variable]
    int msgCount = 0;
        ^
mcast-peer.c:76:12: warning: unused function 'setup_tx_socket' [-Wunused-function]
static int setup_tx_socket(struct sockaddr_in* txAddr)
           ^
mcast-peer.c:121:12: warning: unused function 'setup_rx_socket' [-Wunused-function]
static int setup_rx_socket(void)
           ^
16 warnings generated.

CC = gcc

# Path to wolfSSL source directory (adjust as needed)
WOLFSSL_DIR = ../../wolfssl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be looking at /usr/local/include and usr/local/lib by default for wolfSSL headers and library. Making the attempt to use an installed wolfSSL library. Also use -lwolfssl to link against a dynamic library by default.

@JacobBarthelmeh JacobBarthelmeh assigned anhu and unassigned wolfSSL-Bot Jan 30, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants