This is the gcc safety guard against one of the most common and
terribly dangerous errors in C:
if ( a= b ) instead of if ( a== b )
Didier
Le 19/10/2015 10:11, Edward Bartolo a écrit :
> Nevermind, I did this:
>
> if ( (dir = opendir(IFACES_PATH)) != NULL ) {
>
> No warnings now.
>
> Edward
>
> On 19/10/2015, Edward Bartolo <edbarx@???> wrote:
>> Hi,
>>
>> Could someone explain to me what is the meaning of this error and what
>> I should do to avoid having this warning?
>>
>> edbarx@edbarx-pc:~/netman/backend_src/src$ gcc -Wall -Wfatal-errors -g
>> -lm -I../include core_functions.c file_functions.c backend.c
>> essid_encoder.c automated_scanner.c -o backend
>> automated_scanner.c: In function ‘autoWirelessScanPlus_RN’:
>> automated_scanner.c:521:2: warning: suggest parentheses around
>> assignment used as truth value [-Wparentheses]
>> if ( dir = opendir(IFACES_PATH) ) {
>> ^
>>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng