Skip to content

Fix compiler warnings - #63

Merged
tynanford merged 2 commits into
masterfrom
compiler_warnings
Oct 27, 2026
Merged

tynanford merged 2 commits into
masterfrom
compiler_warnings

Conversation

@tynanford

Copy link
Copy Markdown
Collaborator

Fixes #56

Also fixes -Wparentheses warning in pyField_putval, using similar fix as in b5912de#diff-6054fd9cb59b76bed8a9757c3495039411ccde954a0124dc7a50ddb3d5c5fa17

This was the warning:

  ../dbfield.c: In function ‘pyField_putval’:                                                                         
  ../dbfield.c:332:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]             
    332 |             if (prset = dbGetRset(&self->addr))                                                             
        |                 ^~~~~            

Replace with a loop running forever with epicsThreadSleep()
which matches the fix in epics-base softMain.cpp (de3cdce)
Match update to assign_array to remove gcc warning: suggest
parentheses around assignment used as truth value
@tynanford
tynanford requested a review from pheest October 27, 2026 01:23
@tynanford
tynanford merged commit a38e7b5 into master Oct 27, 2026
32 of 40 checks passed
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.

epicsThreadExitMain() is deprecated

2 participants