Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/make
Module Name: src
Committed By: rillig
Date: Thu Jul 2 15:14:38 UTC 2020
Modified Files:
src/usr.bin/make: make.h nonints.h var.c
Log Message:
make(1): add more type safety for enums
There are several types of flags for variables, and these cannot be
mixed. To prevent accidental typos, these are defined in separate enum
types. Clang warns about direct assignments between distinct types, but
not about mixing distinct types in binary expressions like A | B. GCC
does not warn at all.
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/usr.bin/make/make.h
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.227 -r1.228 src/usr.bin/make/var.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index