http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60195
Bug ID: 60195 Summary: Strange warnings using atomic types Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jp.deplaix at gmail dot com Created attachment 32134 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32134&action=edit Test case Two warnings are raised while compiling the attached test-case. The first one in the function f: warning: variable 'y' set but not used but clearly it is. For example if you replace atomic_int by int here, the warning desapears. The second one in the function g at the line of « y = 0 »: warning: right-hand operand of comma has no effect this warning make no sense, since there is no comma at this line. This was experienced with gcc 4.9.0 20140111 for the first warning and gcc 4.9.0 20140213 for both warnings.