Re: [PATCH] fio: add debug compile flag to avoid compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/15/2016 01:27 PM, Jens Axboe wrote:
> On Mon, Dec 05 2016, Dave Jiang wrote:
>> When compile with debug, without the proper -O flag the compiler complains:
>> /usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires
>> compiling with optimization (-O) [-Wcpp]
>> #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
> 
> Wouldn't it be better to only add the FORTIFY parts if optimization is
> enabled?
> 

I didn't know what the intention of that compile flag was. I was just
trying to turn on debugging and hit that. But I will get that moved.
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux