The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Доступен новый гипервизор KSM"
Отправлено flop, 02-Фев-17 06:03 
> In your harsh replies to critics, obviously.

Harsh replies automatically allocate me as Linus Torvalds, ok.

> And what I should get?
> $ cat tmp.c
> void (*casting_pointers())()
> {
>  void *void_fn = (void*)casting_pointers;
>  void (*fn)() = (void (*)()) void_fn;
>  return fn;
> }
> $ gcc -Wall -c tmp.c
> $

Under MSVC, you'd get a warning saying you're casting a function pointer to a data pointer, which is why I disable this warning under MSVC only.

> I don't know what warnings of MSVC you are talking about, but
> assuming you are right with it and MSVC warnings are useless,
> you should use gcc -Wall and its warnings or some external
> static code analizer to check your code.

It's already implicility used...

>[оверквотинг удален]
> getting those warnings. Clean your code and either make an explicit
> cast of vcpu to struct list_head*, or change type of an
> arg in function declaration to reflect the type of field in
> struct ksm.
>> Also the incompatible pointer warning that was _only_ ignored for just 1 function...
> If it is true, than I understand your behaviour even less. Why
> you need to speak about MSVC and your hatred of compiler
> warnings, instead of clear explanation of the issue? One unresolved warning
> is not so bad as systematically ignored warnings. Acting such a
> way you are showing youself as ignorant fool.

You're the ignorant fool here for not bothering to look at the actual definitions before making these arguments, the vcpu_list is not a list_head, it's simply an array of `struct vcpu`, declared as follows:

struct vcpu vcpu_list[MAX_VCPUS];

So my point is still valid, you're (or the other guy) are arguing about ignoring the warnings while they are actually justified and are mostly substandard.

 

Ваше сообщение
Имя*:
EMail:
Для отправки ответов на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру