https://bugs.kde.org/show_bug.cgi?id=420611

            Bug ID: 420611
           Summary: [suggestion]: add -Wundef to parser args (aka warning:
                    'KCONFIG_VERSION' is not defined, evaluates to 0
                    [-Wundef])
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: rjvber...@gmail.com
  Target Milestone: ---

In case (if not hope...) someone gets to this before me:

It would be useful to add -Wundef to the default compiler arguments used by the
parser. Apparently this flag is not included in -Wall, and its absence leads to
compiling warnings like

foo.c:N:5: warning: 'KCONFIG_VERSION' is not defined, evaluates to 0 [-Wundef]

which you just have to spot and which won't have any runtime repercussions if
you're developing on a system where the version check is supposed to fail even
if the version macro *is* defined.

I'm aware that you can also deduce the fact if a macro is defined from its
colour when using the default code colour palette, but that is just about as
easy as spotting the warning in a pile of compiler output.

(of course you can also wonder why KF5 framework headers don't include their
version header like Qt headers do...)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to